can help me how to remove these other commands in the chat please I just want to leave the / lobby commands these types there that I want to leave for the players, I do not want to leave the remains of my server plugins in the chat when use / need plugin or mess with server settings? help me please
You have to unregister the commands. Something like this should work with $command as your command of course and if you want to do this for multiple commands at a time you can have $command as an array and foreach it. PHP: $command = "ver"; $commandMap = $this->getServer()->getCommandMap(); $commandMap->unregister($commandMap->getCommand($command));