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:
1 parent
9cc4835383
commit
09bd3ca139
1 file changed
+3
@@ -825,9 +825,12 @@ public class GriefPrevention extends JavaPlugin
|
|||||||
this.config_claims_commandsRequiringAccessTrust = new ArrayList<String>();
|
this.config_claims_commandsRequiringAccessTrust = new ArrayList<String>();
|
||||||
String [] commands = accessTrustSlashCommands.split(";");
|
String [] commands = accessTrustSlashCommands.split(";");
|
||||||
for(int i = 0; i < commands.length; i++)
|
for(int i = 0; i < commands.length; i++)
|
||||||
|
{
|
||||||
|
if(!commands[i].isEmpty())
|
||||||
{
|
{
|
||||||
this.config_claims_commandsRequiringAccessTrust.add(commands[i].trim().toLowerCase());
|
this.config_claims_commandsRequiringAccessTrust.add(commands[i].trim().toLowerCase());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//try to parse the list of commands which should be monitored for spam
|
//try to parse the list of commands which should be monitored for spam
|
||||||
this.config_spam_monitorSlashCommands = new ArrayList<String>();
|
this.config_spam_monitorSlashCommands = new ArrayList<String>();
|
||||||
|
|||||||
Reference in new issue
Block a user