Chat Disable/Enable and Plugin Disable/Enable

Discussion in 'Plugin Development' started by damnkiller, Jun 10, 2012.

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


    Hey Guys,

    i try to get my plugin to be enable and disable with commands. The plugin have to listen on a command "ON" to get in normal enabled modus. I tryed it with onEnable and onDisable but these are the normal beginners and if the plugin is disabled and it isnt listening anymore for On command.

    My next question is how to enable or disable the chat for a player. He still needs the right for using commands like /login ... I try to get him stucked still he entered the login data.

    I stuck him with onPlayerMove Event:
    public void event(PlayerMoveEvent ev){
    Player p = ev.getPlayer();
    Location loc = ev.getFrom();


    How could i disable it if he has the correct Login Data?

    Thanks for Help
  2. Offline


    Cancel the event when he walks and when he chats?
Thread Status:
Not open for further replies.

Share This Page