After consideration - I think this should be called "Saved Action Variables". This is too differentiate it a bit from regular "actions". Having "saved" before the title of the feature would immediately differentiate it from the "actions" section.
I think there needs to be a "Saved Click Command/Action Variables" feature that works across the plugin.
These variables should have the option to be "per-menu" (Within the menu file) or global for any menu (a separate file).
Specifically for things like click commands. Where you could have a list like this:
- CDVAR1: '[message] &8(&cCOOLDOWN&8) &7You can not send another public stat message for &e%mcd_left_formatted_StatBroadcastCD%&7.'
And then any click commands section could use it, and then if you needed to change something like the formatting - you would only need to update one variable. EX:
^ The last line would execute the action defined earlier.
This would make it a lot simpler to put together menus where many items have similar messages (like cooldowns). Saves you from cluttering your menu config and also having to copy and paste all your messages. Plus, if you need to reformat a message, you don't need to do a search and replace, or manually go through everything - just update the variable.
You could also expand this system to let variables contain multiple actions. EX:
This would save tons of time and effort when putting together larger menus (Or any sized menu with global variables). I know there have been some placeholderAPI expansions suggested, and some luckperms meta options - but all of those can get confusing to keep track of. This system would keep it all within the plugin. Making it nice and tidy. Just a suggestion - it would save me an absurd amount of hours.
After consideration - I think this should be called "Saved Action Variables". This is too differentiate it a bit from regular "actions". Having "saved" before the title of the feature would immediately differentiate it from the "actions" section.
I think there needs to be a "Saved Click Command/Action Variables" feature that works across the plugin.
These variables should have the option to be "per-menu" (Within the menu file) or global for any menu (a separate file).
Specifically for things like click commands. Where you could have a list like this:
- CDVAR1: '[message] &8(&cCOOLDOWN&8) &7You can not send another public stat message for &e%mcd_left_formatted_StatBroadcastCD%&7.'
And then any click commands section could use it, and then if you needed to change something like the formatting - you would only need to update one variable. EX:
^ The last line would execute the action defined earlier.
This would make it a lot simpler to put together menus where many items have similar messages (like cooldowns). Saves you from cluttering your menu config and also having to copy and paste all your messages. Plus, if you need to reformat a message, you don't need to do a search and replace, or manually go through everything - just update the variable.
You could also expand this system to let variables contain multiple actions. EX:
Then if it's used in a click command section, it activates ALL the actions associated with it:
This would save tons of time and effort when putting together larger menus (Or any sized menu with global variables). I know there have been some placeholderAPI expansions suggested, and some luckperms meta options - but all of those can get confusing to keep track of. This system would keep it all within the plugin. Making it nice and tidy. Just a suggestion - it would save me an absurd amount of hours.