mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 12:01:51 +01:00
Spaces.
This commit is contained in:
parent
99e4cdc1bc
commit
db7775a2c7
@ -48,8 +48,8 @@ public class PermissionUtil {
|
||||
|
||||
public void restore() {
|
||||
// (Don't skip resetting, as there could be fall-back aliases.)
|
||||
// Command registered = CommandUtil.getCommand(label);
|
||||
// if (registered == null || registered != command) return;
|
||||
// Command registered = CommandUtil.getCommand(label);
|
||||
// if (registered == null || registered != command) return;
|
||||
if (!label.equalsIgnoreCase(command.getLabel().trim().toLowerCase())) {
|
||||
command.setLabel(label);
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ public class PlayerTask extends OnDemandTickListener {
|
||||
|
||||
protected boolean updateInventory = false;
|
||||
|
||||
// protected boolean correctDirection = false;
|
||||
// protected boolean correctDirection = false;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -34,10 +34,10 @@ public class PlayerTask extends OnDemandTickListener {
|
||||
final Player player = DataManager.getPlayer(lcName);
|
||||
if (player != null) {
|
||||
if (player.isOnline()) {
|
||||
// if (correctDirection) {
|
||||
// final MCAccess access = NCPAPIProvider.getNoCheatPlusAPI().getMCAccess();
|
||||
// access.correctDirection(player);
|
||||
// }
|
||||
// if (correctDirection) {
|
||||
// final MCAccess access = NCPAPIProvider.getNoCheatPlusAPI().getMCAccess();
|
||||
// access.correctDirection(player);
|
||||
// }
|
||||
if (updateInventory) {
|
||||
player.updateInventory();
|
||||
}
|
||||
@ -45,7 +45,7 @@ public class PlayerTask extends OnDemandTickListener {
|
||||
}
|
||||
// Reset values (players logging back in should be fine or handled differently).
|
||||
updateInventory = false;
|
||||
// correctDirection = false;
|
||||
// correctDirection = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -55,10 +55,10 @@ public class PlayerTask extends OnDemandTickListener {
|
||||
register();
|
||||
}
|
||||
|
||||
// public void correctDirection() {
|
||||
// correctDirection = true;
|
||||
// register();
|
||||
// }
|
||||
// public void correctDirection() {
|
||||
// correctDirection = true;
|
||||
// register();
|
||||
// }
|
||||
|
||||
// TODO: updateHunger
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user