Block standard commands

Discussion in 'Plugin Development' started by felsem, Feb 8, 2020.

  1. Offline

    felsem

    How to remove server commands
    example /me, /verion /msg ? :confused:

    override is not an option:mad:

    pick permission does not work:eek:
    player.addAttachment(plugin, "bukkit.command.version", false)


    in general, the goal is to remove commands from the server without using third-party plug-ins, either by configuring configs or by your code[diamond][diamond][diamond]
     
  2. Offline

    MCMastery

    Try the PlayerCommandPreprocessEvent, and check if the label is "me" or whatever command you don't want to allow. If it is, cancel the event, and send the player a message like "Unknown command" or something
     
    Sw_aG likes this.

Share This Page