Fix nullable texts with variables

This commit is contained in:
Gabriele C 2019-04-30 15:33:57 +02:00
parent ff4114393c
commit a3d692ef1c

View File

@ -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;