Description: A simple and advanced plugin that allows you to create a multi-hub system with only one command /hub
Commands: (The functionality is the same)
/hub (You can change it in config.yml)
/lobby (You can change it in config.yml)
Attention: You can use the plugin with multiple Hubs, or with just one
Plugin has only one configuration file:
Code (YAML):
############################# # SimpleHubCommand # # Made by GameDoctor # # 2024 # ############################# servers:
hub1: # Name of server in proxy name: '&dBeta'
# Hub display name playersLimit: 100
# Max player count enable: true
hub2:
name: '&bGamma'
playersLimit: 50
enable: false
blacklist: # Names of servers where /hub will not work - example1
- example2
- example3
command:
name: hub
# Main command name alias: lobby
redirectInAnotherHub: false
# Allows you to move from one hub to another if there are free ones messages: # All messages support the following placeholders. To disable the message display, simply type '-' alreadyIn: '&cYou are already in one of the Hubs &7
(&f
%name%&8/&e%server%&7)&c. Players in Hub: &e%online%/%max_online% &7(Total: &6%all_online%&7)' allFull: '&cAll Hubs are full at the moment'
allOtherFull: '&cAll other Hubs are full at the moment'
blacklisted: '&cYou cannot access the Hub from this server'
success: '&aYou have been moved to the Hub &f
%name% &7(&e%server%&7)&a. Players in Hub: &e%online%/%max_online% &7(Total: &6%all_online%&7)'
Code (YAML):
############################# # SimpleHubCommand # # Made by GameDoctor # # 2024 # ############################# servers:
hub1: # Название сервера в прокси name: '&dБета'
# Отображаемое название Хаба playersLimit: 100
# Максимальное количество игроков enable: true
hub2:
name: '&bГамма'
playersLimit: 50
enable: false
blacklist: # Названия серверов, где /hub не будет работать - example1
- example2
- example3
command:
name: hub
# Название главной команды alias: lobby
redirectInAnotherHub: false
# Позволяет переходить с одного Хаба в другой, если есть свободные messages: # Все сообщения поддерживают нижеперечисленные плейсхолдеры. Чтобы отключить отображение сообщения, просто введите '-' alreadyIn: '&cВы уже находитесь в одном из Хабов &7
(&f
%name%&8/&e%server%&7)&c. Онлайн Хаба: &e%online%/%max_online% &7(Общий: &6%all_online%&7)' allFull: '&cВсе Хабы переполнены на данный момент'
allOtherFull: '&cВсе остальные Хабы переполнены на данный момент'
blacklisted: '&cВы не можете попасть в Хаб с этого сервера'
success: '&aВы перемещены в Хаб &f
%name% &7(&e%server%&7)&a. Онлайн Хаба: &e%online%/%max_online% &7(Общий: &6%all_online%&7)'
Placeholders:
All messages support the following placeholders:
%name% - Hub display name
%server% - Hub server name
%online% - Player count in Hub
%max_online% - Max player count in Hub
%all_online% - Player count from entire network
%hubs_online% - Player count from all Hubs
%player% - Player name
Все сообщения поддерживают нижеперечисленные плейсхолдеры:
%name% - Отображаемое название Хаба
%server% - Название сервера Хаба
%online% - Количество игроков в Хабе
%max_online% - Максимальное количество игроков в Хабе
%all_online% - Количество игроков на всех серверах
%hubs_online% - Количество игроков во всех Хабах
%player% - Ник игрока
Demonstation:
The HEX color format in the plugin is similar to the one used in the infamous Essentials plugin. For the convenience of generating HEX text gradients, there is a website
https://spigot.kosfarix.ru/hex
But
keep in mind that variables (%player%, %color%, and so on)
cannot be converted to this format.
Формат HEX цветов в плагине похож на тот, что используется в небезызвестном плагине Essentials. Для удобства генерации HEX градиентов текста существует сайт
https://spigot.kosfarix.ru/hex
Но
имейте в виду, что переменные (%player%, %color% и так далее)
нельзя переводить в этот формат.
Note: If you want additional functionality to be added to the plugin, just write about it in the discussion
Installation: Download, drop it in plugins folder and restart your server