Can I register commands from config?? not from plugin.yml I find http://jd.bukkit.org/beta/apidocs/index.html?org/bukkit/command/CommandMap.html but I dont't know how use it Sorry for my English. I'm Polish.
http://forums.bukkit.org/threads/lib-reflectcommand-1-1-2-dynamic-commands-for-the-lazy.109901/ Not really what you were looking for ... Ummm PlayerCommandPreprocessEvent will help achieve this.
That work but now I cant't check config. Eclipse error: The value for annotation attribute ReflectCommand.Command.name must be a constant expression Code: private static String commandname = Config.getConfig("commands.test"); @ReflectCommand.Command(name = commandname, sender = ReflectCommand.Sender.EVERYONE, usage = "/derp lalalalala") public static boolean derp(ConsoleCommandSender sender) { System.out.println("TEST!"); return true; }
I've never used that lib, I just noticed it... Sorry Why not listen into the string into config on preprocess like I also said?