Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by 30TageBan, Dec 8, 2018 at 9:41 PM.
How can i block that in 1.13 Spigot API?
The server will send out a packet (when the player joins) that contains the data used for the auto completion. If you block this packet from going out, you can block the player from using chat completion. I think the packet is called "PacketPlayOutCommands".
Listen for the PlayerCommandSendEvent and remove the unwanted commands. In addition, you can call Player#updateCommands() to force the event to be triggered.
Disable tab-complete in your spigot.yml?
Set permissions on the commands