A fully customizable GUI plugin that has an argument feature.
If you download and like it, please leave a review below.
Please only decompile this plugin for learning purposes.
------------------------Info/Features-----------------------
- Custom open command and GUI title (argument support and color support. Put 'BanMenu: <Arg>' as the name of the GUI in config, and it'll get replaced by the argument in-game!)
- Please see the wiki for more item config tips.
- Unlimited items! Just copy and paste one of the two examples and edit!
- Unlimited menus! Copy and paste a default one and edit!
- In each menu, there's a 'FillWithPanes:' option. If set to true, it will fill all empty spaces in the GUI with Dark Gray Stained Glass Panes. If set to a number (data value for color, <1.13) then it will be that color, same for 1.13, except you would put the actual name of the color:
- Examples:
- 1.13 (On): 'FillWithPanes: true, Orange'
- Pre-1.13 (On): 'FillWithPanes: true, 1'
- Both (Off): 'FillWithPanes: false'
- Hooks into PlaceholderAPI!
- Full item customization
- Custom command for each item (runnable from console or player) Put command to 'null' for no command to be executed. For more info on commands, see https://www.spigotmc.org/resources/customgui.58440/update?update=243496.
- Custom Material, Data Value, Lore, and Name (PlaceholderAPI is supported, use <Arg> before the placeholder to parse the placeholder for the argument. See https://www.spigotmc.org/resources/customgui.58440/update?update=243173 for more info.)
- Custom amount of items in a slot (1 diamond or 10 diamonds, etc.)
- Lore and Name allow color codes and "<Arg>", which gets replaced by the argument in-game (see below)
- Player heads are supported! Put SKULL_ITEM as the material, then the data section becomes the owning player's name. "<Arg>" and "<Username>" are supported, along with PAPI placeholders and regular player names.
- Custom head textures not linked to a player are supported! Just put the code in the Data area after changing the material to HEAD_TEXTURE (the code being the long one you'd find in a link, like hYdeWj3Cbfjds= (but they're longer)
- Leather armor colors are supported, put any leather armor piece as the material, and the data section becomes the "color" section. All color names are supported, and must be all caps. Example: "BLUE"
- “<Username>” will get replaced by the player opening the menu in-game.
- Add "glowing" to the attributes list in config and the item will glow.
- GUIs live update with the config!
- Argument Support
- Leave open command as normal, in item command put “<Arg>“. Then when executing the command, add an argument. For example the item command is “ban <Arg>” and the open command was “punish”, “punish (username)” would open a GUI and if you clicked the item with arguments in config, it would run “ban (username)”!
- Item commands without "<Arg>" in them still function as normal.
- GUI switching feature!
- Use <GUI> at the start of an item command to open another GUI! After <GUI>, put the OpenCommand of the GUI you're trying to open. If the GUI you're trying to open requires arguments, put <Arg> after the OpenCommand.
- GUI Open sounds!
- There's an OpenSound config option for each menu, set to false for no sound, or to a sound name to play that sound.
- See https://www.spigotmc.org/wiki/customgui-snadol/ for item configuration tips
--------------------------Commands--------------------------
/customgui reload - customgui.command - Reloads plugin
/customgui open <menu #> (player) - customgui.command - Opens menu # for optional player.
[][][][][][][][][][][][][][][][] - customgui.open.<menu number> - Permission to open a menu.
-------------------------Permissions------------------------
customgui.open.(menu #) - Permission to open the GUI with the number given
customgui.reload - Permission to reload the plugin
customgui.(menu #).(item #).view - Permission to see a certain item in a GUI
customgui.(menu #).(item #).use - Permission to use an item that you can see's commands
------------------------Installation------------------------
- Download by clicking the download button
- Drag and drop into your plugins folder
- Restart your server/load the plugin (PlugMan)
- Open up the config file and edit to your liking
- Reload the plugin in-game
- Have fun!
----------------------------Help----------------------------
- Q: Where do I find a default configuration? A: Look here.
- Q: I get an error trying to open a GUI or some things aren't appearing! A: Make sure all menu names are '#':, replacing # with a number (also that number is for permissions), and that all item names are 'Item#', replacing # with a number.
- Q: Weird stuff happens! (using color codes makes the first word of lore disappear, etc.) A: Put single quotes around that section of configuration.
- Q: Why do I get an error while using color codes! A: You must surround your name and lore with single quotes (') to use color codes and special characters (", ;, ,, etc)
- Q: Why do I get this symbol?
A: You have entered a correct item name, but incorrect data value (it's missing the texture). Set your data value to 0 and see if that fixes it. If not, join my discord server and ask.
- Q: I need other help. A: Join my discord server! https://discord.gg/vvcQHb8