diff --git a/Plugin/src/main/java/com/gmail/filoghost/chestcommands/internal/VariableManager.java b/Plugin/src/main/java/com/gmail/filoghost/chestcommands/internal/VariableManager.java index 36a1dc7..af44dc6 100644 --- a/Plugin/src/main/java/com/gmail/filoghost/chestcommands/internal/VariableManager.java +++ b/Plugin/src/main/java/com/gmail/filoghost/chestcommands/internal/VariableManager.java @@ -6,6 +6,9 @@ import org.bukkit.entity.Player; public class VariableManager { public static boolean hasVariables(String message) { + if(message == null) { + return false; + } for (Variable variable : Variable.values()) { if (message.contains(variable.getText())) { return true;