Register command

Discussion in 'Plugin Development' started by kamcio96, Jan 12, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    kamcio96

  2. Offline

    ZeusAllMighty11

  3. Offline

    kamcio96

    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;
        }
     
  4. Offline

    ZeusAllMighty11

    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? :p
     
  5. Offline

    kamcio96

    I don't want use preprocess because player can't see command in /help
     
Thread Status:
Not open for further replies.

Share This Page