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:
ryanhamshire 2015-07-16 19:10:37 -07:00
parent 9cc4835383
commit 09bd3ca139

View File

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