Code (YAML):
#After granting the permissions fkboom.command, fkboom.gui, and fkboom.gui.access, players can view the explosion settings GUI but cannot modify the settings.
# Example button to execute command as console (customizable name)
# When the player clicks this button, the console will execute the command dm open menu {player_name} clicked the button!, where {player_name} will be replaced with the name of the player who clicked the button. This command name example_console_command can be customized to any suitable name.
#example_console_command:
#slot: 49
#material: "BARRIER"
#name: "&cReturn"
#lore:
#- "&7Click to return to the menu"
#command: "console:dm open menu {player_name}"
# Example button to execute command as player (customizable name)
# When the player clicks this button, they will execute the command kill {player_name}, where {player_name} will be replaced with the name of the player who clicked the button. This command name suicide can be customized to any suitable name.
#suicide:
#slot: 31
#material: "DIAMOND"
#name: "&bSuicide"
#lore:
#- "&7Click to commit suicide"
#command: "player:kill {player_name}"
# GUI configuration file
# Main GUI configuration
# Only existing slots can be customized
gui:
main:
title
:
"&2Explosion Settings - Page "
size
: 54
border:
material
:
"GLASS_PANE"
name
:
"&f "
slots
:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53
]
items:
prev_page:
slot
: 45
material
:
"ARROW"
name
:
"&6Previous Page"
lore
:
-
"&7Click to go to the previous page"
command
:
"prev_page"
next_page:
slot
: 53
material
:
"ARROW"
name
:
"&6Next Page"
lore
:
-
"&7Click to go to the next page"
command
:
"next_page"
return_button:
slot
: 49
material
:
"BARRIER"
name
:
"&cClose"
lore
:
-
"&7Click to close the menu"
command
:
"close"
world_items:
material
:
"GRASS_BLOCK"
name
:
"&a"
lore
:
-
"&7Click to set the world"
command
:
"open_world_settings {world_name}"
slots
:
[10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, 34, 37, 38, 39, 40, 41, 42
]
# Configuration for world settings menu
# You can freely customize any slot, including adding or removing slots
world_settings:
title
:
"&2{world_name} Settings"
size
: 54
border:
material
:
"GLASS_PANE"
name
:
"&f "
slots
:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53
]
items:
return_button:
slot
: 49
material
:
"ARROW"
name
:
"&cReturn to Main Menu"
command
:
"open_main_gui"
tnt_explosion_setting:
slot
: 11
material
:
"TNT"
name
:
"&cTNT Explosion Setting"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting tnt-explosion-setting"
creeper_explosion_setting:
slot
: 12
material
:
"CREEPER_HEAD"
name
:
"&aCreeper Explosion Setting"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting creeper-explosion-setting"
endercrystal_explosion_setting:
slot
: 13
material
:
"END_CRYSTAL"
name
:
"&bEnd Crystal Explosion Setting"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting endercrystal-explosion-setting"
minecart_tnt_explosion_setting:
slot
: 14
material
:
"TNT_MINECART"
name
:
"&eMinecart TNT Explosion Setting"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting minecart-tnt-explosion-setting"
wither_explosion_setting:
slot
: 15
material
:
"WITHER_SKELETON_SKULL"
name
:
"&cWither Explosion Setting"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting wither-explosion-setting"
ghast_explosion_setting:
slot
: 20
material
:
"GHAST_TEAR"
name
:
"&fGhast Explosion Setting"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting ghast-explosion-setting"
block_explosion_setting:
slot
: 21
material
:
"BRICK"
name
:
"&7Block Explosion Setting"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting block-explosion-setting"
wither_block_damage:
slot
: 22
material
:
"SOUL_SAND"
name
:
"&cWither Block Damage"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting wither-block-damage"
allow_bed_interaction:
slot
: 23
material
:
"WHITE_BED"
name
:
"&cBed Interaction"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting allow-bed-interaction"
allow_anchor_interaction:
slot
: 24
material
:
"RESPAWN_ANCHOR"
name
:
"&dRespawn Anchor Interaction"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting allow-anchor-interaction"
custom_protection:
slot
: 29
material
:
"SHIELD"
name
:
"&9Protected from Explosions"
lore
:
-
"&7Paintings, Armor Stands, Item Frames"
-
"&7Boats, Minecarts, Leads, Glow Item Frames"
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting custom-protection"
explosion_damage:
slot
: 30
material
:
"REDSTONE"
name
:
"&cExplosion Damage"
lore:
- "&7Current setting
:
&e{custom_info}"
command
:
"toggle_setting explosion-damage"
messages:
no_permission
:
"&cYou do not have permission to change settings."
unknown_command
:
"&cUnknown command: {command}"
config_save_error
:
"&cUnable to save config file."
setting_updated
:
"&aSetting updated."
no_permission_msg
:
"&cYou do not have permission to use this command."
config_reloaded
:
"&aPlugin reloaded successfully!"
command_help
:
-
"&6-------- FKBoom --------"
-
"&6 » /fkboom help - Shows the command list"
-
"&6 » /fkboom gui - Opens the settings interface"
-
"&6 » /fkboom reload - Reloads the plugin"
-
"&6 » /fkboom plugin - Shows information about the plugin"
-
"&6-------- FKBoom --------"
unknown_command_msg
:
"&cUnknown command. Use » /fkboom help to see the command list。"
plugin_info
:
-
"&6-------- FKBoom --------"
-
"&6 » Author:_Aosion"
-
"&6 » QQ:1435567503"
-
"&6-------- FKBoom --------"