Closed HSGamer closed 11 months ago
The latest build has implemented the new Argument Processor.
https://github.com/BetterGUI-MC/Issue-Tracker/assets/25300232/cea9e52c-844a-430a-bd6f-7d6293787f54
menu-settings:
command: testargs
argument-processor:
hello:
length: 2
suggest:
- Hello you
- Welcome back
action: "tell: &cHello is required"
message:
take-remaining: true
suggest:
- HSGamer
- Minecraft World
action: "tell: &cMessage is required"
button:
slot: 0
id: stone
name: "&bTest Arguments"
lore:
- "{arg_hello}, {arg_message}"
Finished
Type
Plugin
Specific
Argument Processor
Content
When I first introduced the Argument Processor, it was a "patch job" so that we could use both
Store Argument
andTarget Menu
in every supported menu types.To be honest, its style of configuration is pretty ugly (getting settings from
menu-settings
directly) and unscalable (cannot use the same processor for multiple parts of the command arguments).So, I'm planning a redesign of the way Argument Processor handles, along with a new style of configuration.
What you can expect from the new design:
argument-processor
, instead ofmenu-settings
The "prototype":
Alternative
No response
Screenshots & Links
No response