mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-14 19:41:21 +01:00
Show "flying" in the console startup info as an active check (if not
allowed)
This commit is contained in:
parent
910f5e8d84
commit
3855ed7987
@ -345,6 +345,7 @@ public class NoCheat extends JavaPlugin {
|
||||
|
||||
private String getActiveChecksAsString() {
|
||||
return (movingCheck.isActive() ? movingCheck.getName() + " " : "") +
|
||||
(!movingCheck.allowFlying ? "flying " : "") +
|
||||
(speedhackCheck.isActive() ? speedhackCheck.getName() + " " : "") +
|
||||
(airbuildCheck.isActive() ? airbuildCheck.getName() + " " : "") +
|
||||
(bedteleportCheck.isActive() ? bedteleportCheck.getName() + " " : "");
|
||||
@ -353,7 +354,7 @@ public class NoCheat extends JavaPlugin {
|
||||
|
||||
private String getPermissionsForPlayerAsString(Player p) {
|
||||
return (!movingCheck.isActive() ? movingCheck.getName() + "* " : (hasPermission(p, "nocheat.moving") ? movingCheck.getName() + " " : "") +
|
||||
(!movingCheck.isActive() ? "flying* " : (hasPermission(p, "nocheat.flying") ? "flying " : "")) +
|
||||
(!movingCheck.isActive() || movingCheck.allowFlying ? "flying* " : (hasPermission(p, "nocheat.flying") ? "flying " : "")) +
|
||||
(!speedhackCheck.isActive() ? speedhackCheck.getName() + "* " : (hasPermission(p, "nocheat.speedhack") ? speedhackCheck.getName() + " " : "")) +
|
||||
(!airbuildCheck.isActive() ? airbuildCheck.getName() + "* " : (hasPermission(p, "nocheat.airbuild") ? airbuildCheck.getName() + " " : "")) +
|
||||
(!bedteleportCheck.isActive() ? bedteleportCheck.getName() + "* " : (hasPermission(p, "nocheat.bedteleport") ? bedteleportCheck.getName() + " " : "")) +
|
||||
|
Loading…
Reference in New Issue
Block a user