feat(lohub): Add complete configuration system with 6 config files
- Added messages.yml for all plugin messages with customizable prefix - Added commands.yml for custom commands (discord, website, store, rules, heal, clearinventory) - Added serverselector.yml for GUI server selector menu - Added data.yml for persistent data storage (chat_locked, spawn location) - Updated ConfigManager to load all config files - Updated ChatLockManager to use data.yml instead of chatlock.dat - Updated SpawnManager to use data.yml instead of spawn.yml - Updated all commands to use messages.yml - Updated listeners to use messages.yml - Removed duplicate config files from root directory - Added CONFIG_GUIDE.md documentation
This commit is contained in:
parent
102341bb2c
commit
1e5e8d8638
36 changed files with 1580 additions and 544 deletions
139
lohub/src/main/resources/serverselector.yml
Normal file
139
lohub/src/main/resources/serverselector.yml
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
# ╔══════════════════════════════════════════════════════════════════════════════╗
|
||||
# ║ LoHub Server Selector Configuration ║
|
||||
# ║ GUI menu for server selection ║
|
||||
# ╚══════════════════════════════════════════════════════════════════════════════╝
|
||||
#
|
||||
# This file defines the server selector GUI that players can open
|
||||
# You can customize the items, layout, and actions
|
||||
#
|
||||
# ITEM ACTIONS:
|
||||
# [MESSAGE] text - Send message to player
|
||||
# [BROADCAST] text - Broadcast to all players
|
||||
# [TITLE] title;subtitle;fadeIn;stay;fadeOut - Send title
|
||||
# [ACTIONBAR] text - Send actionbar message
|
||||
# [SOUND] sound - Play sound
|
||||
# [COMMAND] command - Execute as player
|
||||
# [CONSOLE] command - Execute as console
|
||||
# [PROXY] server - Send player to BungeeCord/Velocity server
|
||||
# [CLOSE] - Close inventory
|
||||
#
|
||||
# ITEM FLAGS:
|
||||
# - HIDE_ATTRIBUTES
|
||||
# - HIDE_DESTROYS
|
||||
# - HIDE_ENCHANTS
|
||||
# - HIDE_PLACED_ON
|
||||
# - HIDE_POTION_EFFECTS
|
||||
# - HIDE_UNBREAKABLE
|
||||
#
|
||||
# PLAYER HEADS:
|
||||
# material: PLAYER_HEAD
|
||||
# username: <player_name> # OR
|
||||
# base64: <base64_texture>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
|
||||
# | SERVER SELECTOR GUI |
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
|
||||
|
||||
# GUI settings
|
||||
gui:
|
||||
# Title of the inventory
|
||||
title: "&#FFD700S&#FFC700e&#FFB700r&#FFA700v&#FF9700e&#FF8700r &#FF7700S&#FF6700e&#FF5700l&#FF4700e&#FF3700c&#FF2700t&#FF1700o&#FF0700r"
|
||||
|
||||
# Number of rows (1-6, each row = 9 slots)
|
||||
rows: 3
|
||||
|
||||
# Auto-update GUI (for placeholders)
|
||||
refresh:
|
||||
enabled: false
|
||||
rate: 40 # In ticks (20 ticks = 1 second)
|
||||
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
|
||||
# | GUI ITEMS |
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
|
||||
|
||||
items:
|
||||
# Filler item (decorative glass)
|
||||
filler:
|
||||
material: GRAY_STAINED_GLASS_PANE
|
||||
slot: -1 # -1 = fill all empty slots
|
||||
amount: 1
|
||||
display_name: " "
|
||||
item_flags:
|
||||
- HIDE_ATTRIBUTES
|
||||
|
||||
# Survival server
|
||||
survival:
|
||||
material: GRASS_BLOCK
|
||||
slot: 11
|
||||
amount: 1
|
||||
glow: true
|
||||
display_name: "BCB77S>C973uAC76Fr3C56Bv1C367i(C163v&BF5FaFBD5Bl"
|
||||
lore:
|
||||
- ""
|
||||
- "&#AAAAAAClassic survival experience"
|
||||
- "&#AAAAAABuild, mine, and survive!"
|
||||
- ""
|
||||
- "&#FFD700Click to join!"
|
||||
actions:
|
||||
- "[CLOSE]"
|
||||
- "[MESSAGE] {prefix}BCB77Connecting to Survival..."
|
||||
- "[SOUND] ENTITY_ENDERMAN_TELEPORT"
|
||||
# For BungeeCord/Velocity:
|
||||
# - "[PROXY] survival"
|
||||
# For Multiverse-Core (multi-world):
|
||||
# - "[CONSOLE] mvtp %player% survival_world"
|
||||
|
||||
# Creative server
|
||||
creative:
|
||||
material: COMMAND_BLOCK
|
||||
slot: 13
|
||||
amount: 1
|
||||
glow: true
|
||||
display_name: "&#FF6B6BC&#FF5757r&#FF4343e&#FF2F2Fa&#FF1B1Bt&#FF0707i&#F30000v&#DF0000e"
|
||||
lore:
|
||||
- ""
|
||||
- "&#AAAAAAUnlimited creativity!"
|
||||
- "&#AAAAAABuild anything you imagine"
|
||||
- ""
|
||||
- "&#FFD700Click to join!"
|
||||
actions:
|
||||
- "[CLOSE]"
|
||||
- "[MESSAGE] {prefix}&#FF6B6BConnecting to Creative..."
|
||||
- "[SOUND] ENTITY_ENDERMAN_TELEPORT"
|
||||
# For BungeeCord/Velocity:
|
||||
# - "[PROXY] creative"
|
||||
# For Multiverse-Core:
|
||||
# - "[CONSOLE] mvtp %player% creative_world"
|
||||
|
||||
# Minigames server
|
||||
minigames:
|
||||
material: DIAMOND_SWORD
|
||||
slot: 15
|
||||
amount: 1
|
||||
glow: true
|
||||
display_name: "	B59B6ME4FB0iῑAAnA3BA4iD319Eg򓚖aȔD92m񰸵e餝Fs"
|
||||
lore:
|
||||
- ""
|
||||
- "&#AAAAAAFun minigames and competitions"
|
||||
- "&#AAAAAAPlay with friends!"
|
||||
- ""
|
||||
- "&#FFD700Click to join!"
|
||||
actions:
|
||||
- "[CLOSE]"
|
||||
- "[MESSAGE] {prefix}	B59B6Connecting to Minigames..."
|
||||
- "[SOUND] ENTITY_ENDERMAN_TELEPORT"
|
||||
# For BungeeCord/Velocity:
|
||||
# - "[PROXY] minigames"
|
||||
|
||||
# Close button
|
||||
close:
|
||||
material: BARRIER
|
||||
slot: 22
|
||||
amount: 1
|
||||
display_name: "&#FF6B6BClose"
|
||||
lore:
|
||||
- ""
|
||||
- "&#AAAAAAClick to close this menu"
|
||||
actions:
|
||||
- "[CLOSE]"
|
||||
- "[SOUND] BLOCK_CHEST_CLOSE"
|
||||
Loading…
Add table
Add a link
Reference in a new issue