From 7c967ab2e24b7d8ed20c855e45fe1aa6dc410aca Mon Sep 17 00:00:00 2001 From: asofold Date: Sun, 27 Jul 2014 16:26:57 +0200 Subject: [PATCH] Add game mode to inspect command. --- .../neatmonster/nocheatplus/command/admin/InspectCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/InspectCommand.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/InspectCommand.java index 3e154be6..8b073078 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/InspectCommand.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/InspectCommand.java @@ -51,7 +51,7 @@ public class InspectCommand extends BaseCommand { } else { final StringBuilder builder = new StringBuilder(256); builder.append(player.getName() + c1); - builder.append(" (" + (player.isOnline() ? "online" : "offline") + (player.isDead() ? ",dead" : "") + (player.isValid() ? "" : ",invalid") + (player.isInsideVehicle() ? (",vehicle=" + player.getVehicle().getType() + "@" + locString(player.getVehicle().getLocation())) : "")+ "):"); + builder.append(" (" + (player.isOnline() ? "online" : "offline") + "," + player.getGameMode() + (player.isDead() ? ",dead" : "") + (player.isValid() ? "" : ",invalid") + (player.isInsideVehicle() ? (",vehicle=" + player.getVehicle().getType() + "@" + locString(player.getVehicle().getLocation())) : "")+ "):"); // TODO: isValid, isDead, isInsideVehicle ... // Health. builder.append(" health=" + f1.format(BridgeHealth.getHealth(player)) + "/" + f1.format(BridgeHealth.getMaxHealth(player)));