How do i stop players from doing /?

Discussion in 'Bukkit Help' started by warriorjay25, Sep 1, 2014.

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

    warriorjay25

    I stopped pple from doing /plugins but how do i stop pple from doing /?
     
  2. Offline

    Jace_oio

    warriorjay25

    Listen for PlayerCommandPreprocessEvent, check if the .getMessage().equals("/plugins") and then cancel event if it does ;)

    - Jace_oio
     
  3. Offline

    warriorjay25

  4. Offline

    Jace_oio

    warriorjay25

    PHP:
    /*
    example
    */
    @EventHandler
    public void command (PlayerCommandPreprocessEvent event) {
        if(
    event.getMessage().equals("/plugins") {
            
    event.setCancled(true);
            
    event.getPlayer().sendMessage("You are not allowed to see the plugins list!");
        }
    }
     
  5. Offline

    warriorjay25

  6. Offline

    Lifecraft_R

    bukkit.command.plugins - don't give them this permission
     
Thread Status:
Not open for further replies.

Share This Page