mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-26 18:39:43 -05:00
Fix Exception
This commit is contained in:
1 parent
60c81d9591
commit
acfd192a56
1 file changed
+10
-2
@@ -1,6 +1,7 @@
|
||||
package de.rayzs.pat.api.storage.storages;
|
||||
|
||||
import de.rayzs.pat.api.storage.*;
|
||||
import de.rayzs.pat.plugin.logger.Logger;
|
||||
import de.rayzs.pat.utils.StringUtils;
|
||||
import de.rayzs.pat.utils.permission.PermissionUtil;
|
||||
|
||||
@@ -50,10 +51,17 @@ public class BlacklistStorage extends StorageTemplate implements Serializable {
|
||||
}
|
||||
|
||||
public boolean isListed(String command, boolean intensive) {
|
||||
if(commands == null) {
|
||||
Logger.warning("&cFailed to check command \"" + command + "\"! PAT couldn't read the commands from the storage.yml at section &4" + getNavigatePath() + "&c! Please ensure that your storage.yml isn't corrupt or contains any spaces or empty commands. If this problem still remains, please join my Discord server to ask for help there. &8(&erayzs.de/discord&8)");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!isConverted(command, intensive)) command = convertCommand(command, intensive, true);
|
||||
|
||||
for (String commands : commands)
|
||||
if(commands.equals(command)) return true;
|
||||
for (String commands : commands) {
|
||||
if(commands == null) continue;
|
||||
if (commands.equals(command)) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user