Starting on cleaning up null checks & type casting

This commit is contained in:
gmcferrin
2013-01-08 16:07:29 -05:00
parent 7c211fa50c
commit d2f6191615
7 changed files with 30 additions and 46 deletions

View File

@ -23,6 +23,11 @@ public class Misc {
private static Random random = new Random();
public static final int TOOL_DURABILITY_LOSS = Config.getInstance().getAbilityToolDamage();
public static final int PLAYER_RESPAWN_COOLDOWN_SECONDS = 5;
public static boolean isCitizensNPC(Player player) {
return player.hasMetadata("NPC");
}
/**
* Gets a capitalized version of the target string.