/
config.yml
375 lines (300 loc) · 16.5 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# _ ___ #
# (_) / _ \ #
# __ _ _ | | | | _ _ ___ _ _ ___ #
# / _` || || | | || | | | / _ \| | | | / _ \ #
# | (_| || |\ \/' /| |_| || __/| |_| || __/ #
# \__,_|| | \_/\_\ \__,_| \___| \__,_| \___| #
# _/ | #
# |__/ #
# #
# Welcome to the config for ajQueue! #
# #
# Make sure to read the comments above each option to know what that option does. #
# #
# If you have any questions, first make sure you've read the comment above the option, then #
# feel free to join my discord and ask there (invite link is on the plugin page) #
# #
# Happy configuring! #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# The time the server will wait between sending people in the queue (in seconds, supports decimals)
# Default: 5
wait-time: 5.0
# The time ajQueue will wait between sending players update messages on
# what position they are in the queue, their ETA, and status of the queue (in seconds)
# You can set to any negative number to disable the messages
# Default: 10
message-time: 10
# Should we require permissions for players to be able to join queues?
# If enabled, players will be required to have the permission ajqueue.queue.<server> to be able to join queues
# Replace <server> with the name of the server or group to let the player queue for
# Default: false
require-permission: 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
# Should we enable the ajqueue.bypasspaused permission?
# If enabled, anyone with the permission ajqueue.bypasspaused will be able to join paused servers
# Default: false
enable-bypasspaused-permission: false
# What kick reasons should cause the player to be removed from the queue?
# This works on contains, so you only need to include a word or two from the kick message.
# For example, if one of the below kick reasons is 'banned' and the player gets kicked when trying to connect to
# a server in a queue with a message saying "You are banned from this server!" then it will kick them from the queue too.
kick-reasons:
- 'banned'
- 'blacklisted'
# When a player is kicked from a server, should we automatically add that player to the queue?
# On BungeeCord, you will still need to use another plugin to make sure the player doesn't get kicked from the proxy completely.
# Default: false
auto-add-to-queue-on-kick: false
# The delay for the above option.
# In seconds, decimals supported.
# Default: 1
auto-add-to-queue-on-kick-delay: 1
# With what kick reasons should we auto-add the player to the queue
# This won't work if auto-add-to-queue-on-kick is disabled.
# If you set it to [], then all kick messages will cause the player to be added to the queue
# This works on contains, so you don't have to include the whole kick message, just a few words.
auto-add-kick-reasons:
- "restarting"
- "closed"
# If a player is in a server, you can have the plugin make them automatically join a queue for another server
# Example with the default values: Player joins the limbo server, they will auto-join the queue for the lobbys group
# Note that you don't have to use groups. Just put the name of a server to use a single server instead.
# You do NOT have to set a queue server to use queues.
queue-servers:
- 'limbo:lobbys'
# Should we completely kick the user from the server if they are in a queue-server
# and are kicked from the server with one of the above reasons?
# Note this will do nothing on servers that aren't queue-servers
# (as in the config option queue-servers)
# Default: true
kick-kicked-players: true
# Server groups are a group of servers that you can queue for. It will send you to the server that is the least full.
# If all servers in the group are full, it will act the same as it would when a single server is full.
# Same if all servers are offline. It will only send players to servers that are online.
# Format: "groupname:server1,server2,etc"
server-groups:
- "lobbys:lobby-1,lobby-2,lobby-3"
# What balancer should we use for groups?
# If a group is not specified here, then the default one is used
# Example entry: - "bedwars:minigame"
# Balancers:
# default - Will send the player to the server in the group with the least number of players
# minigame - Will send the player to the server with the most players, until that server is full, which it will then send to the next server
balancer-types:
- "bedwars:minigame"
# If a player is in a server that is in a group and they re-queue for that group, should we allow it?
# false - prevent player from re-queueing; say "already connected" message
# true - let player re-queue; will send them to a server other than the one they're connected to
# Default: false
allow-group-requeue: false
# What priority should we give whitelisted players priority when the server is whitelisted?
# This will have no effect if the server isn't whitelisted
# If you set to 0, this will be disabled
# If you have the free version, set it to 1 to enable
give-whitelisted-players-priority: 0
# What priority should we give players that are able to bypass paused priority when the server is paused?
# This will have no effect if the server isn't paused
# If you set to 0, this will be disabled
# If you have the free version, set it to 1 to enable
give-pausedbypass-players-priority: 0
# What priority should we give players that are able to bypass full servers priority when the server is full?
# This will have no effect if the server isn't full
# If you are using make-room, this also applies to that
# If you set to 0, this will be disabled
# If you have the free version, set it to 1 to enable
give-fulljoin-players-priority: 0
# Should we remove a player from the queue if they move servers?
# This will remove the player from if they switch to any other server
# Default: false
remove-player-on-server-switch: false
# Should we enable the server command being a queue command?
# This may require extra setup on bungeecord. See the wiki:
# https://wiki.ajg0702.us/ajqueue/setup/replacing-server-command
# Default: false
enable-server-command: false
# What servers should we make slash server commands for?
# For example, if survival is in this list, then if a player executes /survival
# then they will be put in the queue for survival
# This works for both servers and groups
# If you have ajQueuePlus, you can also make aliases.
# For example, if you have a server called lobby, and you want people to be able to use /hub, you can use this:
# - "hub:lobby"
# If you have the free version, you can only put the server name, no aliases.
slash-servers: []
# Should we enable priority messages?
# Configure the priority messages in the option below.
# Default: false
enable-priority-messages: false
# Messages we send to players with priority queue when they join the queue
# In the free version, "priority" is 1.
# The * will send when a player joins with any priority.
# The format is <priority>:<message>
# Example: 1:You have a priority of 1!
priority-messages:
- "*:<green>Joining the queue with a priority of {PRIORITY}!"
- "100:<yellow>Wow! You have a priority of 100!"
# Should the plugin send a title to the player?
# The title shows what position the player is in the queue
# Default: false
send-title: false
# Should we log to the proxy console when a player fails to get sent to a server from the queue?
# Enable this if you are having an issue with one player stopping the queue
# Default: false
send-fail-debug: false
# Should the plugin send an actionbar to the player?
# The actionbar contains some info such as which server they are queued for, what position they are in, estimated time remaining, etc.
send-actionbar: true
# THIS FEATURE IS ONLY AVAILABLE ON ajQueuePlus (https://www.spigotmc.org/resources/ajqueueplus.79123/)
# This will show players a different name than the actual proxy server name
# for example, instead of showing players "event-a", this option can make it appear as "Event A"
# With this example, you would use this: - "event-a:Event A"
# Note that currently players still have to use the normal names in queue commands and leave commands
# Format: "realname:Alias"
server-aliases:
- "event-a:Event A"
# The time that a server has to be offline to be marked as offline instead of restarting (in seconds)
# Default: 120
offline-time: 120
# On velocity, should we end a player a message when they are kicked while trying to connect to a server with the queue?
# This has no effect on bungee, because the message is sent from bungee and there's no way to change that in ajQueue
# Default: false
velocity-kick-message: false
# Should we wait until the server is done loading to load the servers?
# Enable this if you have a plugin that adds servers to the server list during startup.
# Default: false
wait-to-load-servers: false
# How long should we wait after the server finishes loading to load the server list?
# Only works if the above is enabled.
# This is in miliseconds so 1000 = 1 second
# Default: 500
wait-to-load-servers-delay: 500
# How often (in seconds) we should check for new servers to add queues for.
# If you dynamicly add servers, set this to something other than 0.
# To disable, set to 0
# Default: 0
reload-servers-interval: 0
# Should we let players join more than one queue?
# If enabled, players will be able to be in multiple queues at once.
# If disabled, players will be removed from the previous queue when joining a new queue
# Default: true
allow-multiple-queues: true
# If the player is queued for multiple servers, which server should we pick to use in things like placeholders and actionbars
# Options are first and last
# Default: last
multi-server-queue-pick: last
# How long should we wait after a server is online before sending players?
# The server will still show up as offline or restarting until this amount of time after its up
# Meant to let your server 'cool down' after lag from starting up
# In seconds
# Default: 1
wait-after-online: 1
# This is for helping with finding issues with the server pinged
# This will spam the console when enabled
# When this enabled, if servers are offline then it will spam errors. You can ignore them.
# Default: false
pinger-debug: false
# When a queue is paused, should we prevent players from joining it?
# (instead of having players wait in the queue until it's unpaused)
# Default: false
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
# Should we allow tab-completing in the /queue command?
# Any server the player doesn't have permission for (require-permission)
# will not tab-complete
# Default: 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 immediately 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"
# Should we require permissions for queue-servers to work?
# If enabled, players will need to have the ajqueue.queueserver.<server> permission
# <server> being the target server
# Note that this will only affect queue-servers
# Default: false
require-queueserver-permission: false
# After how many (unsuccessful) attempts of sending the player should we remove them from the queue?
# Set to -1 to disable
# Default: 10
max-tries: 10
# Should we enable the ajqueue.make-room permission?
# The make-room permission will force there to be room in a server.
# So, if a player with this permission queues for a server and has this permission,
# someone from the server will be moved to the lobby to make room
# This can be further configured using the next few options
# Default: false
enable-make-room-permission: false
# What server should the make-room permission move players to?
# Default: lobby
make-room-kick-to: lobby
# For the make-room permission, players with the lowest priority are kicked first.
# Of those players, this option decides which to kick.
# true - kick players who have been on the server the longest
# false - kick players who have been on nthe server the shortest
# Default: true
make-room-kick-longest-playtime: true
# Should we check every 4 seconds if a player has a higher priority permission than before
# If they do, they are removed and re-added to the queue (only if they would be put in a higher position)
# Default: false
re-check-priority: false
# Should we check to make sure that people don't get sent quicker than wait-time?
# Default: true
check-last-player-sent-time: true
# Should we send debug info to the console when priority queue is used?
# This will print several lines to the console when a player joins a queue,
# so you should probably only use this for debugging purposes
# Default: false
priority-queue-debug: false
# What protocols do servers support?
# The protocol version number list can be found here: https://wiki.vg/Protocol_version_numbers
# Format: server(s):protocol(s)
# Example: 1.17:755,756
# This example will only allow 1.17 and 1.17.1 on the server called 1.17
# Example: lobby-1,lobby-2,lobby-3:754,755,756
# This example will only allow 1.16.5, 1.17, and 1.17.1 on the 3 lobby servers
supported-protocols:
- "1.17:755,756"
# Should the updater be enabled?
enable-updater: true
# Should we force players to be queued every few seconds for queue-servers?
# This will check every few seconds, and if a player in a queue-server is
# not in the queue for the target server, it will add them.
force-queue-server-target: true
# How long should the cooldown for queue commands be? (in seconds)
# Set to -1 to disable
# Default: 3
queue-command-cooldown: 3
# Should any server switch (including the initial join) count against the queue command cooldown?
include-server-switch-in-cooldown: false
# The minimum time between pinging the server. (in seconds)
# If ajQueue is pinging your backend servers too often, raise this number
minimum-ping-time: 1.0
# In ajQueuePlus, if your permission plugin isn't yet supported, you can use this workaround to
# be able to use levels 1-10 for priority, or 15, 30, 60, and 120 for stayqueued
# If you want more levels than that, contact aj to add support for your permission plugin if possible.
# Does nothing if you are not on ajQueuePlus, or if you have a supported permission plugin
plus-level-fallback: false
# Should we print some extra stuff to the console that might help aj diagnose some issues?
debug: false
# # # # # # # # # # # # # # # # # # # # #
# #
# End of config. Happy queue-ing :) #
# #
# # # # # # # # # # # # # # # # # # # # #
# Don't touch this number please
config-version: 41
# This is ONLY here so that they can be moved to messages.yml. Please edit these in messages.yml!
protocol-names: []
# ^ only edit these in messages.yml