General Information
1. Commands
2. Permissions
3. Placeholders
4. How to update
1. Commands
Code (Text):
/castlegates
/castlegates help
/castlegates reload
/castlegates menu
/castlegates wand
/castlegates item get <item-name>
/castlegates item get-group <item-group>
/castlegates particle spawn <particle-name> <world-name> <x> <y> <z>
/castlegates particle spawn-to <online-player> <particle-name>
/castlegates particle show-me <particle-name>
/castlegates particle show-me-group <particle-group> <group-particle>
/castlegates message send <online-player> <message-name>
/castlegates message broadcast <message-name>
/castlegates sound play <sound-name> <world-name> <x> <y> <z>
/castlegates gate get <generator-name>
/castlegates gate get-group <generator-group>
/castlegates gate get-all
/castlegates gate set <generator-name>
/castlegates gate remove
/castlegates structure save <file-path>
/castlegates structure place <structure-name>
2. Permissions
Code (Text):
castlegates.reload
castlegates.item
castlegates.item.add
castlegates.item.get
castlegates.item.get-group
castlegates.message
castlegates.message.send
castlegates.message.broadcast
castlegates.particle
castlegates.particle.show-me
castlegates.particle.spawn
castlegates.particle.spawn-to
castlegates.sound
castlegates.sound.play
castlegates.sound.play-to
castlegates.structure.wand
castlegates.structure.place
castlegates.structure.save
castlegates.generator
castlegates.generator.set
castlegates.generator.set-all
castlegates.generator.remove
castlegates.generator.remove-all
castlegates.generator.harvest-all
castlegates.generator.get
castlegates.generator-get-group
castlegates.generator.get-all
castlegates.generator.rotate
castlegates.generator.break
castlegates.generator.place
3. Placeholders
Gate
{gate}
{gate_stage}
{gate_stages}
{gate_state}
{gate_rotation}
{gate_world}
{gate_x}
{gate_y}
{gate_z}
{stage_timer}
{stage_timer_full}
{stage_timer_seconds}
{stage_timer_minutes}
{stage_timer_hours}
{gate_timer}
{gate_timer_full}
{gate_timer_seconds}
{gate_timer_minutes}
{gate_timer_hours}
Command
{command}
{command_name}
{command_description}
{command_permission}
Styles
You can apply a case style to a placeholder by appending it at the end: {generator_tc} {command_name_lc}
lc: lowercase
uc: UPPERCASE
tc: Title Case
sc: Sentence case
spc: spaced case
spu: SPACED UPPERCASE
spl: spaced lowercase
cc: CONSTANT_CASE
sn: snake_case
kb: kebab-case
ps: PascalCase
cm: camelCase
4. How to update
Backup and regenerate files
- Shut down the server
- Make a copy of the plugin folder (plugins/CastleGates)
- Delete the plugin folder (plugins/CastleGates)
- Start up the server; the plugin will generate new files
Restore Configuration Files
- Add the YAML files you want to keep from the backup (gates, items, particles, sounds, and functions)
- Use the /castlegates reload command and fix any issues with your configurations
Restore the database (gates placed in your world)
- Delete the database file (data.mv.db)
- Place the old database back into the plugin folder (plugins/CastleGates)
- Start the server and check the console for warnings to make sure no gates have been removed due to a mistake