
CommandGUI
Customizable Command GUI for Spigot/Paper
- Загрузки
- 842
- Подписчики
- 5
- Обновлён
- 20 февраля 2026 г.
- Лицензия
- Apache-2.0
Опубликован 27 декабря 2024 г.
CommandGUI Plugin
Overview
CommandGUI is a Minecraft Spigot plugin that provides players with a custom GUI to execute commands as the player interacting with the GUI. The GUI is fully configurable, allowing you to define items, commands, and layout. Players can also receive a custom item that opens the GUI when used.
Features
- Custom GUI: A player-friendly interface to execute commands with a click.
- Configurable Items: Define items, their appearance, and the commands they execute in the GUI via the configuration file.
- Dynamic Inventory Sizing: Automatically adjusts the GUI size based on the number of items.
- Customisable Tool: Players can use a custom tool to open the GUI.
- Command Reload: Easily reload the plugin's configuration with
/commandgui reload.
Commands
/commandgui
- Description: Opens the Command GUI for the player.
- Aliases:
/cg
/commandgui tool
- Description: Gives the player a tool that opens the Command GUI when used.
- Aliases:
/cg tool
/commandgui give <player>
- Description: Gives the specified player the Command GUI Tool.
- Aliases:
/cg give <player>
/commandgui help
- Description: Displays all the plugin's commands.
- Aliases:
/cg help
/commandgui reload
- Description: Reloads the plugin's configuration.
- Aliases:
/cg reload
Permissions
| Permission | Description | Default |
|---|---|---|
commandgui.use |
Allows player to open the GUI. | OP |
commandgui.bypass |
Allows player to bypass cooldowns. | OP |
commandgui.tool |
Gives player a tool to open the GUI. | OP |
commandgui.give |
Gives another player the GUI Tool. | OP |
commandgui.reload |
Allows reloading the plugin config. | OP |
Installation
- Download the CommandGUI plugin
.jarfile. - Place the
.jarfile in your server'spluginsdirectory. - Start the server to generate the default configuration file.
- Configure the plugin by editing
plugins/CommandGUI/config.yml. - Reload the plugin with
/commandgui reloador restart the server.
Configuration
The config.yml file allows you to customize the items in the GUI.
# General settings
language-file: "en_us.yml" # Default language file. Changing languages will break existing CommandGUI tools!
verbose-mode: false # Set to true to enable verbose messages globally for all items (default fallback)
gui-size-mode: "dynamic" # Options: "dynamic", "fixed"
gui-tool: "COMPASS" # This is the item used to open the GUI given by "/cg tool"
gui-items:
- slot: 0
name: "&aGo to Spawn"
command: "spawn"
item: "COMPASS"
run-as-player: true
cooldown: 0 # No cooldown
verbose: true # Always log interaction for this item
lore:
- "&7Click to teleport to spawn"
- slot: 1
name: "&cHeal"
command: "heal"
item: "GOLDEN_APPLE"
run-as-player: true
cooldown: 30 # 30 seconds cooldown
verbose: false # Never log interaction for this item
lore:
- "&7Click to heal yourself"
- slot: 2
name: "&bDiamonds"
command: "give %player% diamond 1"
item: "DIAMOND"
run-as-player: false
cooldown: 60 # 60 seconds cooldown
# No verbose field; falls back to global verbose-mode
lore:
- "&bReceive a diamond!"
- "&3This is a server reward."
Configuration Options
General Settings
language-file: The language file to use (default:en_us.yml).verbose-mode: Iftrue, displays verbose messages for item interactions globally (default:false).gui-size-mode: Determines the size of the GUI. Options:"dynamic": Adjusts the inventory size based on the number of items."fixed": Sets the GUI size to a fixed double chest (54 slots).
gui-tool: Sets the tool used to open the GUI.
GUI Items
Each item in the GUI has the following options:
name: The display name of the item in the GUI, with color codes supported (e.g.,&aGo to Spawn).command: The command executed when the item is clicked (e.g.,spawnorgive %player% diamond 1).item: The item's material (e.g.,DIAMOND,GOLDEN_APPLE,COMPASS).slot: The inventory slot for the item (optional, auto-increment if not provided).lore: A list of text lines displayed as the item's lore (optional, supports color codes).run-as-player: Iftrue, the command will run as the player. Iffalse, the command will run as the console (default:false).cooldown: The cooldown in seconds before the item can be used again (default:0for no cooldown).verbose: Iftrue, overrides the globalverbose-modeand enables verbose logging for this item (optional).
Usage
Opening the GUI:
- Use the
/commandguicommand to open the GUI. - Alternatively, use the tool provided with
/commandgui tool.
- Use the
Adding Items:
- Edit the
config.ymlfile to add or modify items in the GUI. - Reload the configuration with
/commandgui reload.
- Edit the
Contributing
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.
License
This plugin is licensed under the Apache License 2.0.
Thanks for using CommandGUI
Ченджлог
v3.3.0Релиз1.21.9, 1.21.10, 1.21.11 · 20 февраля 2026 г.
Update v3.3.0 - Added "gui-tool" option to config, this allows you to change the tool used to open the GUI from the default Knowledge Book to any other item. Renamed permission "commandgui.book" to "commandgui.tool", updated lang files, renamed command "/cg book" to "/cg tool".
Please add 'gui-tool: "KNOWLEDGE_BOOK"' to your config.yml or regenerate your config when updating.
3.2.0Релиз1.21.9, 1.21.10, 1.21.11 · 29 декабря 2024 г.
Update v3.2.0 Added line to help command, updated README.md, annotations in en_us.yml. Added translations to Spanish, French, German, Simplified Chinese, Japanese, Italian, and Portuguese. Moved language files into lang directory. Version bump due to larger changes, update config.yml
3.1.0Релиз1.21.2, 1.21.3, 1.21.4 · 28 декабря 2024 г.
Added update checker
3.0Релиз1.21.2, 1.21.3, 1.21.4 · 28 декабря 2024 г.
Added fixed/dynamic GUI options, verbose mode, updated config and language file and major bug fixes since first version 3.0 snapshot. Added help command and more
2.1Релиз1.21.2, 1.21.3, 1.21.4 · 28 декабря 2024 г.
Update to v2.1 Rename material to item in config.yml and fix permission
2.0Релиз1.21.2, 1.21.3, 1.21.4 · 28 декабря 2024 г.
Update to v2 Added %player% placeholder, lang.yml file, bug fixes and a lot more!
1.0Релиз1.21.2, 1.21.3, 1.21.4 · 27 декабря 2024 г.
First Release
Комментарии
Загружаем…