Conditional GUI | Make your own conditionals GUI! [HEAD-SUPPORT] [1.13.x - 1.21.x] icon

Conditional GUI | Make your own conditionals GUI! [HEAD-SUPPORT] [1.13.x - 1.21.x] -----

Make your own conditionals gui to execute multiple commands!



What is "Conditional GUI"
Conditional GUI is a plugin that make possible to make your own conditional gui to allow people to open a gui from a command and execute different server commands if they match the condition you set up.

Features
  • Multiple command support
  • Unlimited number of GUI
  • Money and rank condition support
  • SuperiorSkyBlock and SuperiorSkyBlock2 support (beta)
  • McMMO Levels support
  • UP/DOWN/EQUALS keywords to conditions
  • Custom heads on GUI support
  • Fully customisable GUI
  • Fully customisable with configs and messages files
How to install
  • Download the latest version of the plugin
  • Place the downloaded .jar file in your server plugin folder
  • Start your server
  • Enjoy!
Commands
  • /conditionalgui » Open the GUI
  • /conditionalgui open » Open the GUI
  • /conditionalgui help » Display the help page
  • /conditionalgui reload » Reload the plugin
Messages and Configs Files
Code (YAML):
prefix : "&8[&aConditional GUI&8] "
help-command
:
 - "&d/conditionalgui &c» &2Open the rank-up GUI"
  - "&d/conditionalgui open &c» &2Open the rank-up GUI"
  - "&d/conditionalgui help &c» &2Display the help page"
  - "&d/conditionalgui reload &c» &2Reload the plugin"

upgradable
: "&aUpgradable!"
not-upgradable
: "&cNot upgradable!"
already-owned
: "&2Already owned!"

reload-command
:
 - "&aPlugin reloaded!"

errors
:
  already-owned
:
   - "&cYou already own it and it's not reclaimable!"
  conditions-not-met
:
   - "&cSorry, but you don't meet the conditions to claim this!"
  no-ranks-available
:
   - "&cSorry, but no ranks upgrades are available yet!"
  not-enough-permission
:
   - "&cSorry, but you don't have enough permission to do that!"
  must-be-a-player
:
   - "&cSorry, but you must be a player in order to do that!"
  invalid-icon
:
   - "An error occurred. The icon \" {icon }\ " isn't a valid material !"
    - "Please, change it to a valid material from https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html"
Code (YAML):
gui:
  borders
:
    icon
: BLACK_STAINED_GLASS_PANE
    name
: " "

# Little trick: Since you have to type "/cdg open <gui name>" to open a gui, you can add an alias into your commands.yml in your server root folder.
# It should looks like this (you need to restart the server to make the alias effective).
# aliases:
#   mysuperguialias:
#     - cdg open guiname

gui1
: # This will be used to open the GUI (/cdg open gui1). It's case sensitive. NB: The name "gui" is reserved to the border config. It will not be recognized as a gui.
  title
: "&2Super GUI" # Title of this single GUI
  ranks
:
    rank1
: # This will server as the display name in the GUI
      display-name-color
: "&2" # Change the display name color in the GUI
      icon
: PLAYER_HEAD # Change the display icon in the GUI. Please, add "head-texture" option to get a custom head.
      head-texture
: "ZeTioZ" # Head texture either in Base64 or directly the player's nickname. You can find the Base64 on https://minecraft-heads.com/custom-heads/ on the very bottom of the page copy the "Value" field.
      name
: "The rank" # The name is NOT the display name in the GUI
      lore
: # Change the lore of the displayed item in the GUI. If you don't want a lore, delete and place [] instead.
        - "Rank
: {rank } "
        - "
Conditions to upgrade: "
        - "
   - 1000$ "
        - "
   - 5 Mined blocks in total "
        - "
   - 15 Mined Diamond Ores "
        - "
   - 500XP "
        - "
"
        - "
Upgradable : {upgradable } "
      rankup-message: # Message sent to the player once he rankup. If you don't want a rankup message, delete and place [] instead.
        - "
Good job {player }! "
        - "
You reach the rank \ "{rank}\"! "
      recaimable: true # It define if whether or not the upgrade is reclaimable
      conditions: # Conditions to upgrade (Refer to the plugin's page to know which conditions are available)
        money: 1000
        mined_total: 5
        # To add a block to watch on the block list, just add a new line with the following syntax: - "
MATERIAL:AMOUNT "
        # Materials can be found at the following link https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
        mined_blocks:
          blocks_list:
            - "
DIAMOND_ORE:15 "
        xp: 500
      commands: # Commands that are sent as console once the player get the upgrade. If you don't want any command, delete and place [] instead.
        - "
eco take {player } 1000 "
        - "
xp take {player } 500 "

Conditions
Code (Text):
KILL » Condition based on the kills the player did
MONEY » Condition based on the player's money
XP » Condition based on the player's xp
MINED_BLOCKS » Condition based on player's individual block break amount. Check the "config.yml" sample to see how to use it.
MINED_TOTAL » Condition based on player's total mined block amount
RANK_NEEDED » Condition based on rank already owned by the player
PERMISSION_NEEDED » Condition based on a list of permission that the player must have
MCMMO_LEVEL » Condition based on player's overall McMMO Levels
ISLAND_LEVEL » Condition based on player's island level
ISLAND_GENERATOR » Condition based on player's island generator
ISLAND_SIZE » Condition based on player's island size
NO_CONDITION » This condition will ignore any other condition

Each numeral condition (with number to compare) can be prefixed by "UP_\DOWN_\EQUALS_"
(Feel free to ask for new conditions)

Permissions

  • conditionalgui.reload (/conditionalgui reload)
Servers using this plugin
  • play.conquestmc.earth
(if you want your server listed here, feel free to ask for it)

Code (Text):
• Multiple custom panels (Added 0.5.0)
• Custom command for each panel (Added 0.5.0)
• Permission based condition (Added 0.4.2)
• Up and down conditions (i.e : UP_KILL/DOWN_KILL) (Added 0.4.0)
• Using custom heads as icons in the menu (Added 0.3.0)
• Specific block break condition for each block (Added 0.2.0)

Need support ? Feel free to contact me on discord! Click here to join the discord!

Feel free to rate the plugin and send feedback!
And don't forget to leave a like ;)
Resource Information
Author:
----------
Total Downloads: 1,340
First Release: Nov 10, 2020
Last Update: May 5, 2021
Category: ---------------
All-Time Rating:
6 ratings
Find more info at discord.gg...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings