mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-23 02:25:26 +01:00
Fix nullable texts with variables
This commit is contained in:
parent
ff4114393c
commit
a3d692ef1c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user