Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendMessage not working #1444

Open
xiaoxigua-1 opened this issue Oct 19, 2024 · 0 comments
Open

sendMessage not working #1444

xiaoxigua-1 opened this issue Oct 19, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@xiaoxigua-1
Copy link

xiaoxigua-1 commented Oct 19, 2024

Expected Behavior

The player can normally receive system messages.

Actual Behavior

The sendMessage function executed normally, but the player did not receive any packet for any of the chats.
code

  • velocity log
    [02:54:01 INFO]: Booting up Velocity 3.4.0-SNAPSHOT (git-99aaf3ce-b439)...
    [02:54:01 INFO]: Loading localizations...
    [02:54:01 INFO]: Connections will use epoll channels, libdeflate (Linux x86_64) compression, OpenSSL 3.x.x (Linux x86_64) ciphers
    [02:54:01 INFO]: Loading plugins...
    [02:54:02 INFO] [packetevents]: Plugin started
    [02:54:02 INFO]: Loaded plugin packetevents 2.5.0 by retrooper
    [02:54:02 INFO]: Loaded plugin signedvelocity 1.2.4 by 4drian3d
    [02:54:02 INFO]: Loaded plugin xchat 1.0-SNAPSHOT by 
    [02:54:02 INFO]: Loaded 4 plugins
    [02:54:02 INFO] [packetevents]: Injecting packetevents...
    [02:54:02 WARN]: The server channel initializer has been replaced by java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    [02:54:02 INFO]: Checking for updates, please wait...
    [02:54:02 INFO] [signedvelocity]: Starting SignedVelocity
    [02:54:02 INFO] [xchat]: Initialization XChat plugin
    [02:54:02 INFO]: Listening on /[0:0:0:0:0:0:0:0%0]:25599
    [02:54:02 INFO]: Done (1.21s)!
    [02:54:03 INFO]: You are running the latest release of PacketEvents. Your build: (§a2.5.0§f)
    [02:54:21 INFO]: [connected player] xiao_xigua (/127.0.0.1:38126) has connected
    [02:54:21 INFO]: [server connection] xiao_xigua -> lobby has connected
    [02:54:23 INFO]: Compound{{count=Int(1), components=Compound{{minecraft:custom_name=String("Diamond Swordasdasdasdad")}}, id=String(minecraft:diamond_sword)}}
    [02:54:23 INFO]: com.github.retrooper.packetevents.util.adventure.AdventureNBTSerializer$NbtComponentValue@3a3f9919
    [02:54:23 INFO]: Hello
    
  • client network log

Steps to Reproduce

Environment

  1. set up a Fabric backend and install the two mods: FabricProxy-Lite-2.9.0 and SignedVelocity-Fabric-1.2.4.
  2. set the player-info-forwarding-mode in the Velocity config to modern.
  3. under servers, add the previously created Fabric server.

Velocity Plugin

  1. create a HoverEvent.ShowItem with components.
  2. use ProxyServer.sendMessage to send it.

Plugin List

  • packetevents 2.5.0
  • signedvelocity 1.2.4

Velocity Version

Velocity 3.4.0-SNAPSHOT (git-99aaf3ce-b439)
Copyright 2018-2024 Velocity Contributors. Velocity is licensed under the terms of the GNU General Public License v3.
velocitypowered.com - GitHub

Additional Information

No response

@xiaoxigua-1 xiaoxigua-1 added the type: bug Something isn't working label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant