Adding a bit of Fail Fast.
This commit is contained in:
parent
4452ebc392
commit
982c8de90f
@ -40,11 +40,13 @@ public enum PlayerState
|
|||||||
|
|
||||||
public static PlayerState get(UUID id)
|
public static PlayerState get(UUID id)
|
||||||
{
|
{
|
||||||
|
if (id == null) throw new NullPointerException("id");
|
||||||
return EngineMassiveCorePlayerState.get().getState(id);
|
return EngineMassiveCorePlayerState.get().getState(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static PlayerState get(Player player)
|
public static PlayerState get(Player player)
|
||||||
{
|
{
|
||||||
|
if (player == null) throw new NullPointerException("player");
|
||||||
return EngineMassiveCorePlayerState.get().getState(player);
|
return EngineMassiveCorePlayerState.get().getState(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user