mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-06 18:50:54 +01:00
Add op-notice to "ncp inspect".
This commit is contained in:
parent
29000fbdb7
commit
5245dcca9a
@ -51,7 +51,7 @@ public class InspectCommand extends BaseCommand {
|
|||||||
} else {
|
} else {
|
||||||
final StringBuilder builder = new StringBuilder(256);
|
final StringBuilder builder = new StringBuilder(256);
|
||||||
builder.append(player.getName() + c1);
|
builder.append(player.getName() + c1);
|
||||||
builder.append(" (" + (player.isOnline() ? "online" : "offline") + "," + player.getGameMode() + (player.isDead() ? ",dead" : "") + (player.isValid() ? "" : ",invalid") + (player.isInsideVehicle() ? (",vehicle=" + player.getVehicle().getType() + "@" + locString(player.getVehicle().getLocation())) : "")+ "):");
|
builder.append(" (" + (player.isOnline() ? "online" : "offline") + "," + (player.isOp() ? "!OP!," : "") + player.getGameMode() + (player.isDead() ? ",dead" : "") + (player.isValid() ? "" : ",invalid") + (player.isInsideVehicle() ? (",vehicle=" + player.getVehicle().getType() + "@" + locString(player.getVehicle().getLocation())) : "")+ "):");
|
||||||
// TODO: isValid, isDead, isInsideVehicle ...
|
// TODO: isValid, isDead, isInsideVehicle ...
|
||||||
// Health.
|
// Health.
|
||||||
builder.append(" health=" + f1.format(BridgeHealth.getHealth(player)) + "/" + f1.format(BridgeHealth.getMaxHealth(player)));
|
builder.append(" health=" + f1.format(BridgeHealth.getHealth(player)) + "/" + f1.format(BridgeHealth.getMaxHealth(player)));
|
||||||
|
Loading…
Reference in New Issue
Block a user