A bug was fixed last night if you use multiple command classes that resolve to the same slash command, for resolving @Default - pull an update!
I really want to use this framework for WeChat. Currently I just have my master command class. Which is just a huge mess of switches and sub-switches. I'm just being so lazy about porting the almost 2k file to ACF.
No need to register commands in your plugin.yml, ACF skips system that requires commands to be registered in there by placing itself directly into the command map (That way, it can do all the magic it does)
Wow holy crap, thanks for clarifying Ima have to use this system, would I be required to shade it with maven?
Oh sweet cheers dude! Thanks very much. Looks like my evening will be spent migrating my commands, right now I use the CommandHandler / Interface method and I'm not too happy with it. I also feel like I can't be bothered to setup more handlers to do multiple commands, I'm happy with this I can create commands and sub commands very easily.
if you have any problems, be sure to just direct them into this thread or into #aikar on the spigot irc. I am sure aikar is also happy about every bit of feedback and suggestions he can get
Ayeee sweet dude, thanks for the help and friendlyness I actually cannot wait to use this later, will make my life so much easier Especially as there is a feature I wish to add to one of my plugins and I sort of doubted doing it as I couldn't easily add a custom root command. Now I can say I can do it!
Just looked into using this, how could I send the player a message if they don't have the @CommandPermission("") ?
I wanna send them a custom 1 ;-; xD Is it possible to have 2 base commands? I wanna add an extra root command I have Code (Text): @CommandAlias("unitygen|gen") public class MainCommand extends BaseCommand { } so far
you can have as many BaseCommand's as you want, custom no permission messages wouldn't be too hard to add, no idea if that would be better waiting for Aikars i18n support, but shouldn't be something that is even remotely hard to add
Oh I didn't know, could you give an example registering 2 base commands, and then using them? I take it I would use the annotations above then use the same annotations but with the sub command too?
Eek didn't work ;-; Code (Text): @CommandAlias("unitygen|gen") @Subcommand("reload|r") public class ReloadCommand extends BaseSubCommand { public void onReload(CommandSender sender) { if(sender.hasPermission("unitygen.reload")){ sender.sendMessage(Lang.RELOAD.get()); Main.getInstance().reloadConfig(); Main.getFileManager().loadFiles(); }else sender.sendMessage(Lang.NO_PERMISSION.get()); }
Mother freaking outstanding resource. I don't know how to describe my word rn, this is one of the most quality resource I haven't seen for a while. You deserve a medal, my friend