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() { public void restore() {
// (Don't skip resetting, as there could be fall-back aliases.) // (Don't skip resetting, as there could be fall-back aliases.)
// Command registered = CommandUtil.getCommand(label); // Command registered = CommandUtil.getCommand(label);
// if (registered == null || registered != command) return; // if (registered == null || registered != command) return;
if (!label.equalsIgnoreCase(command.getLabel().trim().toLowerCase())) { if (!label.equalsIgnoreCase(command.getLabel().trim().toLowerCase())) {
command.setLabel(label); command.setLabel(label);
} }

View File

@ -17,7 +17,7 @@ public class PlayerTask extends OnDemandTickListener {
protected boolean updateInventory = false; 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); final Player player = DataManager.getPlayer(lcName);
if (player != null) { if (player != null) {
if (player.isOnline()) { if (player.isOnline()) {
// if (correctDirection) { // if (correctDirection) {
// final MCAccess access = NCPAPIProvider.getNoCheatPlusAPI().getMCAccess(); // final MCAccess access = NCPAPIProvider.getNoCheatPlusAPI().getMCAccess();
// access.correctDirection(player); // access.correctDirection(player);
// } // }
if (updateInventory) { if (updateInventory) {
player.updateInventory(); player.updateInventory();
} }
@ -45,7 +45,7 @@ public class PlayerTask extends OnDemandTickListener {
} }
// Reset values (players logging back in should be fine or handled differently). // Reset values (players logging back in should be fine or handled differently).
updateInventory = false; updateInventory = false;
// correctDirection = false; // correctDirection = false;
return false; return false;
} }
@ -55,10 +55,10 @@ public class PlayerTask extends OnDemandTickListener {
register(); register();
} }
// public void correctDirection() { // public void correctDirection() {
// correctDirection = true; // correctDirection = true;
// register(); // register();
// } // }
// TODO: updateHunger // TODO: updateHunger