Made in Germany with love (and beer)
Did you ever want an over engineered plugin just to change a single number? Then this is what you were looking for!
DynamicSlots lets you dynamically set the max player count of your BungeeCord's or Bukkit's Minecraft server list entry!
You can define multiple dynamic sources from where the plugin will get your slot/max player count from or just make it add additional slots above your player count. Everything is fully configurable and you can even manually set the slot count via a command.
For example with the MySQL query of the default config it will set the slot count to the amount of players that your server had in the last 24 hours using LogBlock's player table.
Aliases: /dynamicslots, /dynamicslot, /ds
/ds info - dynamicslots.command.info - Shows some information about your current setup
/ds reload - dynamicslots.command.reload - Reload the config
/ds set <count> - dynamicslots.command.set - Manually set the slot count and overwrite any configured amount
/ds reset - dynamicslots.command.reset - Reset a manually set count back to the configured one
Code (YAML):# How long to cache the results of the source's query for
# Slot count used when static source is used or no dynamic slot count was found
# Setting slots to -1 will cause it to display the real slot count in that case
# Max amount of slots that should be displayed
# Amount of slots to add when the online count is the same or above the count that would be displayed
# Use 0 to disable this feature completely
# Negative values will subtract from the real playercount
# (Why you would ever do that is beyond me but you can if you want!)
# The source where we want to get the slots from
# Possible types include mysql, file, static and url
# The mysql query, file path or web url
query: 'select COUNT(*) as count from `lb-players` WHERE lastlogin > DATE_ADD(NOW(), INTERVAL -1 DAY) AND onlinetime > 60'
# The regex pattern to try to get the count from when the query returns a string
# Additional settings for the mysql source
Source: https://github.com/Phoenix616/DynamicSlots (Licensed under MPLv2)
Bug reports/feature requests: https://github.com/Phoenix616/DynamicSlots/issues
Dev builds: https://ci.minebench.de/job/DynamicSlots/
Programming is time intensive and I would really appreciate your support!
So if you can afford it or make commercially use of this plugin feel free to buy me a beer.
Patreon with rewards: Patreon
This resource is distributed under the terms of the MPLv2.