From 77e3fd90b4aeefda3dd1faf72c90039c077fb154 Mon Sep 17 00:00:00 2001 From: drtshock Date: Fri, 7 Nov 2014 12:38:45 -0600 Subject: [PATCH] Don't assume Essentials is running. --- .../java/com/massivecraft/factions/integration/Essentials.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/integration/Essentials.java b/src/main/java/com/massivecraft/factions/integration/Essentials.java index a4cd2e1d..64f51463 100644 --- a/src/main/java/com/massivecraft/factions/integration/Essentials.java +++ b/src/main/java/com/massivecraft/factions/integration/Essentials.java @@ -38,6 +38,9 @@ public class Essentials { } public static boolean isVanished(Player player) { + if(essentials == null) { + return false; + } return essentials.getUser(player).isVanished(); } }