Added debug toggle command
This commit is contained in:
parent
0fcd93b654
commit
7d8e81886b
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 "
|
SendMessage(player, "RP tag showing "
|
||||||
+ (PlayerListener.ShowRPTag ? "enabled" : "disabled"));
|
+ (PlayerListener.ShowRPTag ? "enabled" : "disabled"));
|
||||||
break;
|
break;
|
||||||
|
case "toggledebug":
|
||||||
|
PlayerListener.DebugMode=!PlayerListener.DebugMode;
|
||||||
|
SendMessage(player, "DebugMode: "+PlayerListener.DebugMode);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
String message = "§cUsage: /u admin reload|playerinfo|getlasterror|save|setflair|updateplugin|togglerpshow§r";
|
String message = "§cUsage: /u admin reload|playerinfo|getlasterror|save|setflair|updateplugin|togglerpshow§r";
|
||||||
SendMessage(player, message);
|
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) {
|
public void SendForDebug(String message) {
|
||||||
if (DebugMode) {
|
if (DebugMode) {
|
||||||
|
|
Loading…
Reference in a new issue