How can you name a command using "case" from a name given in config.yml. Example: //config.yml ClassSet: "Appleseed" items: 264:0:32 --- How can I make Appleseed the command from the config.yml? Full Command: /myplugin <appleseed> (Also, again, sorry if this is a dumb question.)
If you mean to dynamically register commands depending on config values, have a look at Hormones' SwitchOrganCommand: https://github.com/LegendOfMCPE/Hor.../src/Hormones/Commands/SwitchOrganCommand.php Particularly, look at lines 75-89, which registers permissions and commands depending on data from the database.
I forgot to mention this isnt a "command" as your probably thinking. Its to add it to a command. Example. /myplugin appleseed
Well now you edited your post and made me seem like a stupid person who read your post halfway. Anyway, let me quote you this time. Which one do you not know how to use? Naming a command or using switch?
Perhaps you should learn about the basics of PHP variables first. This question has nothing to do with PocketMine.