Don't assume Essentials is running.

This commit is contained in:
drtshock 2014-11-07 12:38:45 -06:00
parent 962f92496c
commit 77e3fd90b4
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ public class Essentials {
}
public static boolean isVanished(Player player) {
if(essentials == null) {
return false;
}
return essentials.getUser(player).isVanished();
}
}