replace denyjoinfrom permission with ajqueue.joinfrom and config option

This commit is contained in:
ajgeiss0702
2020-07-20 08:24:34 -07:00
parent 8d7345c5e1
commit 33e61f3c36
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -459,7 +459,7 @@ public class Manager {
return;
}
if(p.hasPermission("ajqueue.denyjoinfrom."+p.getServer().getInfo().getName())) {
if(pl.config.getBoolean("joinfrom-server-permission") && !p.hasPermission("ajqueue.joinfrom."+p.getServer().getInfo().getName())) {
p.sendMessage(msgs.getBC("errors.deny-joining-from-server"));
return;
}