Added debug toggle command

This commit is contained in:
Norbi Peti 2015-09-03 19:26:41 +02:00
parent 760e8f63a2
commit eab5ecb764
8 changed files with 5 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -278,6 +278,10 @@ public class Commands implements CommandExecutor {
SendMessage(player, "RP tag showing "
+ (PlayerListener.ShowRPTag ? "enabled" : "disabled"));
break;
case "toggledebug":
PlayerListener.DebugMode=!PlayerListener.DebugMode;
SendMessage(player, "DebugMode: "+PlayerListener.DebugMode);
break;
default:
String message = "§cUsage: /u admin reload|playerinfo|getlasterror|save|setflair|updateplugin|togglerpshow§r";
SendMessage(player, message);

View file

@ -214,7 +214,7 @@ public class PlayerListener implements Listener { // 2015.07.16.
}
}
public boolean DebugMode = false;
public static boolean DebugMode = false;
public void SendForDebug(String message) {
if (DebugMode) {