added send-instantly to config
This commit is contained in:
@@ -614,7 +614,8 @@ public class Manager {
|
|||||||
}
|
}
|
||||||
int pos = list.indexOf(p)+1;
|
int pos = list.indexOf(p)+1;
|
||||||
int len = list.size();
|
int len = list.size();
|
||||||
if(list.size() <= 1 && server.isOnline() && server.canAccess(p) && !server.isFull() && !server.isWhitelisted()) {
|
boolean sendInstant = pl.config.getStringList("send-instantly").indexOf(server.getName()) != -1;
|
||||||
|
if((list.size() <= 1 || sendInstant) && server.canAccess(p)) {
|
||||||
sendPlayers(s);
|
sendPlayers(s);
|
||||||
BaseComponent[] m = msgs.getBC("status.now-in-empty-queue", "POS:"+pos, "LEN:"+len, "SERVER:"+pl.aliases.getAlias(s));
|
BaseComponent[] m = msgs.getBC("status.now-in-empty-queue", "POS:"+pos, "LEN:"+len, "SERVER:"+pl.aliases.getAlias(s));
|
||||||
if(TextComponent.toPlainText(m).length() > 0) {
|
if(TextComponent.toPlainText(m).length() > 0) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Dont touch this number please
|
# Dont touch this number please
|
||||||
config-version: 15
|
config-version: 16
|
||||||
|
|
||||||
# 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
|
||||||
@@ -123,3 +123,12 @@ server-groups:
|
|||||||
# Should we allow tab-completing in the /queue command?
|
# Should we allow tab-completing in the /queue command?
|
||||||
# Default: true
|
# Default: true
|
||||||
tab-complete-queues: true
|
tab-complete-queues: true
|
||||||
|
|
||||||
|
# Should we have no wait time for these servers?
|
||||||
|
# If the server is joinable, the plugin will attempt to send players who join these queues as soon as they join.
|
||||||
|
# If the server is not immidiatly joinable, they will have to wait for the normal wait-time
|
||||||
|
# This also works with group
|
||||||
|
# NOTE: Server names are caps sensitive
|
||||||
|
send-instantly:
|
||||||
|
- "lobbys"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user