Plugin onCommand

Discussion in 'Bukkit Help' started by Tagette, May 23, 2011.

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

    Tagette

    My onCommand function is not running therefore neither are my commands.

    I have it in my main class and it is overridden.

    Heres my code:
    Code:
    @Override
        public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
            boolean handled = false;
            TLogger.Info("HI!");
            if (sender instanceof Player) {
                Player player = (Player) sender;
                handled = TCommand.IssueCommand(player, cmd, commandLabel, args);
            }
            return handled;
        }
    The "HI!" doesn't even show up in the console when I type a command.
    The logger works fine because the enabled and disabled messages show in the console.
    Is there an event I need to add to the plugin for commands to work?

    Please help I have been searching forever for this answer. Looking at other source code, tutorials and such.
     
Thread Status:
Not open for further replies.

Share This Page