Better Chest Commands This is meant to be a modification for Chest Commands by Floghost, an open source GUI system. Placeholders update Currently, the placeholders work only in commands. For example, the command for an item in a menu would be “tell:You have %money% dollars” I would like it so that when you hover over an item, the placeholders take action. For example, an item’s name is “&bBalance: &e%money%” This will save the player from exiting the menu to see information. I would also like this to be implemented in lores, so that an item lore can display data. Placeholders update part 2 Add A TON of placeholders. This shouldn't be too hard If I need more placeholders, I can always ask right? Factions: Faction Power Faction Land Faction Balance Faction Members Faction Members Online Player’s role if a faction Faction ally members online Faction Power Personal Faction power General Server Info: Server time Online Players Maximum players Player info: Player balance Player health Player saturation Player Coords Player PEX Rank PVP info (I use Battletracker) Player Kills Player Deaths Player KDR Player Winstreak Now for the hard part Dynamic Items What is a dynamic Item? Right now, in the config, It looks something like this Item: NAME: ‘&eMy Command Item' COMMAND: 'spawn' ID: 261 AMOUNT: 16 LORE: - ‘Tp’s you to spawn!’ POSITION-X: 6 POSITION-Y: 3 ENCHANTMENT: protection,9 PERMISSION: Moo.I.am.a.cow This spawns in an item at 6,3, an item of a bow, with a name of ‘My command item’ and lore of ‘Tp you to spawn’ with the enchantment prot 9, and spawns 16 in. When clicked, it casts the command ‘/Spawn’ for the player. The player must have the permission ‘moo.i.am.a.cow’ What I need is something far more advanced than this. Its quite self explanatory, so this is what I would like the config to look like. DynamicItem: NAME: ‘My Command Item' ISDYNAMIC: True POSITION-X: 6 POSITION-Y: 3 COMMANDS: 1: PERMISSION1: I.am.a.level.1.cow HasPermissionID: 57 NoPermissionID: 1 HasPermissionEnchant: Power,1 NoPermissionEnchant: Power,-1 HasPermissionAmount: 1 NoPermissionAmount: 1 HasPermissionCommand: '<server>pex user %player% group set cow1, pex user %player% add -I.am.a.level.1.cow, <server>pex user %player% add I.am.a.level.2.cow' NoPermissionCommand: 'tell:You already purchased this rank!' COST: 100 2: PERMISSION1: I.am.a.level.2.cow HasPermissionID: 57 NoPermissionID: 1 HasPermissionEnchant: Power,2 NoPermissionEnchant: Power,-2 HasPermissionAmount: 2 NoPermissionAmount: 2 HasPermissionCommand: '<server>pex user %player% group set cow2, <server>pex user %player% add -I.am.a.level.2.cow, <server>pex user %player% add I.am.a.level.3.cow' NoPermissionCommand: 'tell:You already purchased this rank!' COST: 500 3: So on 4: and on 5: and on 6: This needs to support up to 7: around 30 ish 8: as this will help me sell ranks 9: and let people "equip ranks" 10: Thanks! This also needs work individually Example DynamicItem: NAME: ‘My Command Item' ISDYNAMIC: True POSITION-X: 6 POSITION-Y: 3 PERMISSION1: I.am.a.level.1.cow HasPermissionID: 57 NoPermissionID: 1 HasPermissionEnchant: Power,1 NoPermissionEnchant: Power,-1 HasPermissionAmount: 1 NoPermissionAmount: 1 HasPermissionCommand: '<server>pex user %player% group set cow1, pex user %player% add -I.am.a.level.1.cow, <server>pex user %player% add I.am.a.level.2.cow' NoPermissionCommand: 'tell:You already purchased this rank!' COST: 100 Finally, If a player has, or doesn't have enough money for COST, make it display NoPermissionAmount, Chest commands sends a different message when you dont have enough money, there is no need to change that. Best Regards EDIT: For some reason, its not displaying the configs correctly, here is the google doc https://docs.google.com/document/d/1C1YV6B3Qq7myRNjOus8HjHTTN1p-f-fiT98hgW_PEdk/edit?usp=sharing- Andrew
CraftBook's CommandItems can do a lot of what you want here. You could request the other parts as feature requests.