ProtocolLib

3M Downloads

Packet add command throws exception, fails to recognize add as a valid subcommand

egg82 opened this issue ยท 0 comments

commented
  • This issue is not solved in a development build

Describe the bug
packet add command throws an exception and is not recognized as a valid subcommand.

To Reproduce
Steps to reproduce the behavior:

  1. Open console
  2. type packet add and press enter

Expected behavior
packet add does not throw an exception and full packet add behavior functions as documented.

Screenshots

> packet add
[12:58:45 INFO]: Error Cannot execute command packet. (java.util.NoSuchElementException) occurred in com.comphenix.protocol.CommandPacket@7006a7ed.
[12:58:45 ERROR]:   [ProtocolLib] INTERNAL ERROR: Cannot execute command packet.
  If this problem hasn't already been reported, please open a ticket
  at https://github.com/dmulloy2/ProtocolLib/issues with the following data:
  Stack Trace:
  java.util.NoSuchElementException
        at java.base/java.util.ArrayDeque.removeFirst(ArrayDeque.java:362)
        at java.base/java.util.ArrayDeque.remove(ArrayDeque.java:523)
        at ProtocolLib.jar//com.comphenix.protocol.CommandPacket.parseCommand(CommandPacket.java:449)
        at ProtocolLib.jar//com.comphenix.protocol.CommandPacket.handleCommand(CommandPacket.java:160)
        at ProtocolLib.jar//com.comphenix.protocol.CommandBase.onCommand(CommandBase.java:77)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155)
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.dispatchCommand(CraftServer.java:911)
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.dispatchServerCommand(CraftServer.java:874)
        at net.minecraft.server.dedicated.DedicatedServer.bg(DedicatedServer.java:473)
        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:447)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1416)
        at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1192)
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305)
        at java.base/java.lang.Thread.run(Thread.java:833)
  Dump:
  Parameters:
    com.destroystokyo.paper.console.TerminalConsoleCommandSender@59f0e47[
      conversationTracker=org.bukkit.craftbukkit.v1_19_R1.conversations.ConversationTracker@37e4e6b2
      perm=me.lucko.luckperms.bukkit.inject.permissible.MonitoredPermissibleBase@667d2abd
      spigot=org.bukkit.craftbukkit.v1_19_R1.command.ServerCommandSender$1@f00d11d
    ]
    packet
    [Ljava.lang.String;@7161afc3[
      {add}
    ]
    manager:
      com.comphenix.protocol.injector.PacketFilterManager@61a0062b[
        plugin=ProtocolLib v5.0.0-SNAPSHOT-b597
        server=CraftServer{serverName=Paper,serverVersion=git-Paper-130,minecraftVersion=1.19.2}
        reporter=com.comphenix.protocol.ProtocolLib$1@67865c94
        minecraftVersion=(MC: 1.19.2)
        asyncFilterManager=com.comphenix.protocol.async.AsyncFilterManager@1be5e810
        pluginVerifier=com.comphenix.protocol.injector.PluginVerifier@7a153419
        inboundListeners=com.comphenix.protocol.injector.SortedPacketListenerList@2bc04fdb
        outboundListeners=com.comphenix.protocol.injector.SortedPacketListenerList@7e77c4cb
        registeredListeners=[PacketAdapter[plugin=Vortex, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=MONITOR, packets=[SETTINGS[class=PacketPlayInSettings, id=8]], gamephase=PLAYING, options=[]]]]
        packetInjector=com.comphenix.protocol.injector.netty.manager.NetworkManagerPacketInjector@4a66067d
        playerInjectionHandler=com.comphenix.protocol.injector.netty.manager.NetworkManagerPlayerInjector@198056d4
        networkManagerInjector=com.comphenix.protocol.injector.netty.manager.NetworkManagerInjector@30976ca8
        debug=false
        closed=false
        injected=true
      ]
  Sender:
    com.comphenix.protocol.CommandPacket@7006a7ed[
      plugin=ProtocolLib v5.0.0-SNAPSHOT-b597
      logger=com.destroystokyo.paper.utils.PaperPluginLogger@aa9027e
      manager=com.comphenix.protocol.injector.PacketFilterManager@61a0062b
      chatter=com.comphenix.protocol.utility.ChatExtensions@1104c309
      typeParser=com.comphenix.protocol.PacketTypeParser@1a7d0fad
      pagedMessage={}
      packetTypes=com.comphenix.protocol.concurrency.PacketTypeSet@2ad22d91
      extendedTypes=com.comphenix.protocol.concurrency.PacketTypeSet@58204f01
      compareTypes=com.comphenix.protocol.concurrency.PacketTypeSet@8a7f93f
      originalPackets={}
      listener=<null>
      compareListener=<null>
      filter=com.comphenix.protocol.CommandFilter@45582380
      permission=protocol.admin
      name=packet
      minimumArgumentCount=1
      reporter=com.comphenix.protocol.ProtocolLib$1@67865c94
    ]
  Version:
    ProtocolLib v5.0.0-SNAPSHOT-b597
  Java Version:
    17.0.2
  Server:
    git-Paper-130 (MC: 1.19.2)

> packet
[12:59:50 INFO]: Insufficient arguments. You need at least 1
[12:59:50 INFO]: /packet add|remove|names client|server [ID start]-[ID stop] [detailed]
> packet add client 7 true
[13:01:47 INFO]: add is not a valid sub command. Must be add or remove.

Version Info
ProtocolLib v5.0.0-SNAPSHOT-b597
https://pastebin.com/gVMgFcKy

Additional context
N/A