replace denyjoinfrom permission with ajqueue.joinfrom and config option
This commit is contained in:
@@ -459,7 +459,7 @@ public class Manager {
|
|||||||
return;
|
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"));
|
p.sendMessage(msgs.getBC("errors.deny-joining-from-server"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Dont touch this number please
|
# Dont touch this number please
|
||||||
config-version: 13
|
config-version: 14
|
||||||
|
|
||||||
# The time the server will wait between sending people in the queue
|
# The time the server will wait between sending people in the queue
|
||||||
# Default: 5
|
# 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?
|
# When a server goes back online, should we send all players in the queue instantly?
|
||||||
# Default: false
|
# Default: false
|
||||||
send-all-when-back-online: 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
|
||||||
|
|||||||
Reference in New Issue
Block a user