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;
}
+7 -1
View File
@@ -1,5 +1,5 @@
# Dont touch this number please
config-version: 13
config-version: 14
# The time the server will wait between sending people in the queue
# Default: 5
@@ -104,3 +104,9 @@ prevent-joining-paused: false
# When a server goes back online, should we send all players in the queue instantly?
# Default: false
send-all-when-back-online: false
# Require a permission for players to be able to join a queue from a server
# If enabled, players will need the permission ajqueue.joinfrom.<server> to join queues.
# Replace <server> with the name of the server
# Default: false
joinfrom-server-permission: false