Support for zero commands requiring access trust.
Now the list of commands requiring access trust to execute in land claims can be empty without any odd side-effects.
This commit is contained in:
parent
9cc4835383
commit
09bd3ca139
|
|
@ -826,7 +826,10 @@ public class GriefPrevention extends JavaPlugin
|
|||
String [] commands = accessTrustSlashCommands.split(";");
|
||||
for(int i = 0; i < commands.length; i++)
|
||||
{
|
||||
this.config_claims_commandsRequiringAccessTrust.add(commands[i].trim().toLowerCase());
|
||||
if(!commands[i].isEmpty())
|
||||
{
|
||||
this.config_claims_commandsRequiringAccessTrust.add(commands[i].trim().toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
//try to parse the list of commands which should be monitored for spam
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user