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
105
lohub/src/main/resources/commands.yml
Normal file
105
lohub/src/main/resources/commands.yml
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
# ╔══════════════════════════════════════════════════════════════════════════════╗
|
||||
# ║ LoHub Custom Commands Configuration ║
|
||||
# ║ Create custom commands with actions ║
|
||||
# ╚══════════════════════════════════════════════════════════════════════════════╝
|
||||
#
|
||||
# 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
|
||||
# [GAMEMODE] mode - Change gamemode
|
||||
# [EFFECT] effect;level - Give potion effect
|
||||
# [CLOSE] - Close inventory
|
||||
#
|
||||
# PLACEHOLDERS:
|
||||
# %player% - Player name
|
||||
# %player_displayname% - Player display name
|
||||
# %online% - Online players count
|
||||
# %online_max% - Max players
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
|
||||
# | CUSTOM COMMANDS |
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
|
||||
|
||||
custom_commands:
|
||||
# Discord command
|
||||
discord:
|
||||
aliases:
|
||||
- discord
|
||||
- дискорд
|
||||
- ds
|
||||
permission: null # null = no permission required
|
||||
actions:
|
||||
- "[MESSAGE] 	B59B6Discord: &#FFFFFFdiscord.example.net"
|
||||
- "[SOUND] BLOCK_NOTE_BLOCK_PLING"
|
||||
|
||||
# Website command
|
||||
website:
|
||||
aliases:
|
||||
- website
|
||||
- site
|
||||
- сайт
|
||||
- web
|
||||
permission: null
|
||||
actions:
|
||||
- "[MESSAGE] �D4FFWebsite: &#FFFFFFwww.example.net"
|
||||
- "[SOUND] BLOCK_NOTE_BLOCK_PLING"
|
||||
|
||||
# Store command
|
||||
store:
|
||||
aliases:
|
||||
- store
|
||||
- shop
|
||||
- магазин
|
||||
- донат
|
||||
permission: null
|
||||
actions:
|
||||
- "[MESSAGE] &#FF6B6BStore: &#FFFFFFstore.example.net"
|
||||
- "[SOUND] BLOCK_NOTE_BLOCK_PLING"
|
||||
|
||||
# Clear inventory command (admin only)
|
||||
clearinventory:
|
||||
aliases:
|
||||
- ci
|
||||
- clearinv
|
||||
- очиститьинв
|
||||
permission: lohub.admin
|
||||
actions:
|
||||
- "[CONSOLE] minecraft:clear %player%"
|
||||
- "[MESSAGE] {prefix}BCB77Your inventory has been cleared!"
|
||||
- "[SOUND] ENTITY_ITEM_PICKUP"
|
||||
|
||||
# Heal command (admin only)
|
||||
heal:
|
||||
aliases:
|
||||
- heal
|
||||
- хил
|
||||
permission: lohub.admin
|
||||
actions:
|
||||
- "[CONSOLE] minecraft:effect give %player% minecraft:instant_health 1 10 true"
|
||||
- "[CONSOLE] minecraft:effect give %player% minecraft:saturation 1 10 true"
|
||||
- "[MESSAGE] {prefix}BCB77You have been healed!"
|
||||
- "[SOUND] ENTITY_PLAYER_LEVELUP"
|
||||
|
||||
# Rules command
|
||||
rules:
|
||||
aliases:
|
||||
- rules
|
||||
- правила
|
||||
permission: null
|
||||
actions:
|
||||
- "[MESSAGE] &r"
|
||||
- "[MESSAGE] &#FFD700╔═══ Server Rules ═══╗"
|
||||
- "[MESSAGE] &r"
|
||||
- "[MESSAGE] BCB771. Be respectful to all players"
|
||||
- "[MESSAGE] BCB772. No cheating or hacking"
|
||||
- "[MESSAGE] BCB773. No spam in chat"
|
||||
- "[MESSAGE] BCB774. Follow staff instructions"
|
||||
- "[MESSAGE] BCB775. Have fun!"
|
||||
- "[MESSAGE] &r"
|
||||
- "[MESSAGE] &#FFD700╚═══════════════════════╝"
|
||||
- "[SOUND] BLOCK_NOTE_BLOCK_PLING"
|
||||
Loading…
Add table
Add a link
Reference in a new issue