Command TAB Packet changing?

Discussion in 'Plugin Development' started by mbcx2, Aug 30, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    mbcx2

    Is it possible to change the /<TAB> packet?
    Example you press /<TAB> and then it will tell you all the registered commands on the server right?
    Is there ANY way to edit that and keep like 1 command only to appear (That is /help) so if the keeps pressing tab there is no other commands except /help but really there is a hundred more commands than /help, I think maybe ProtocolLib can do that? I am not sure at all...
     
  2. mbcx2 It should be possible since the client is sending the packet and the server answers it? Comphenix knows, he's the packet-guy here.
     
  3. Offline

    ase34

    Coulnd't the PlayerTabCompleteEvent do the job?
     
  4. Offline

    mbcx2

    I checked it, There is no way to edit packet, And also there is no way to cancel the even but you can use spigot thing to disable tab-complete
     
  5. Offline

    phips99

    There is a packet which you can modify. I personally use PacketWrapper to modify packets. It's called PacketCBTabComplete. And you can setText and getText. These are the only things which you can do... You can't actually change the text which is shown up in the chat you can only change the text in your text bar...
     
    Comphenix likes this.
  6. Offline

    Comphenix

  7. Offline

    mbcx2

    I use Spigot's tab-complete: false in the spigot.yml :)

    Code example?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  8. Offline

    phips99

  9. Offline

    Jade

    Pointing out that we do not support Spigot, nor any of its functions or other systems. Should you seek support for that here, this thread will be locked.
     
  10. Offline

    Gamecube762

    This would be nice for if they have permission to the command, then it shows that command.
     
  11. Offline

    ISHLCMinecraft

    In your main class just use this method:
    PHP:
    public List<StringonTabComplete(CommandSender senderCommand command,
                
    String aliasString[] args) {
            return 
    Arrays.asList("arg1""arg2""arg3");
        }
    This method gets the same arguments as the onCommand method.
    The return is the possible completes.
    Hope I helped :)
     
Thread Status:
Not open for further replies.

Share This Page