Mute chat not muting the chat

Discussion in 'Plugin Development' started by Evaluations, Oct 21, 2014.

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

    Evaluations

  2. Offline

    RingOfStorms

    Are you sure you are not OP or have the permission that bypasses it by default?

    Also please for the love of humanity read up on java naming practices. Don't uppercase your variable's first character. So make the "D" in Deactivate a "d"
     
  3. Offline

    ProtoTempus

    Assuming your if statement is passing as true and the "e.setCancelled(true);" is running properly (debug this , make sure it is running), it could be another plugin that is setting it back to false. Check the EventHandler and your plugins priority.
     
  4. Offline

    es359

    Use a boolean value to control wether the chat is muted or not. Evaluations
     
  5. Offline

    fireblast709

    Evaluations use the same instance to set as the command executor and the listener. Moreover:
    • Check if sender instanceof Player before casting to Player
    • Don't return Deactivated, return true or false depending on whether you want to show the usage or not.
     
Thread Status:
Not open for further replies.

Share This Page