Added debug toggle command
This commit is contained in:
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue