This commit is contained in:
asofold 2014-11-20 12:28:50 +01:00
parent 99e4cdc1bc
commit db7775a2c7
3 changed files with 277 additions and 277 deletions

View File

@ -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);
}

View File

@ -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