mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Starting on cleaning up null checks & type casting
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user