Solved Disable commands?

Discussion in 'Plugin Development' started by Sean0402, Jul 29, 2014.

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

    Pizza371

    Sean0402 you might want to use equalsIgnoreCase because there is an easy bypass right there.
    Have you tried removing the '/'? Also, why you listening to so many events?

    Btw, you can block all those commands with permission nodes, if you wish.
     
  2. Offline

    GameplayJDK

    Sean0402 You should use .equalsIgnoreCase instead of .equals.
    You can also shorten that by using } else if (...) {
     
  3. Offline

    Monkey_Swag

    use the commandpreprocessevent and event#getMessage()#startsWith("/bukkit:"); then event.setCancelled(true);
    You can do that with every command you want.
     
  4. Offline

    Monkey_Swag

Thread Status:
Not open for further replies.

Share This Page