Commands not being executed

Discussion in 'Plugin Development' started by SirLittlemonster7, May 12, 2013.

Thread Status:
Not open for further replies.
  1. So.. I when i try to register commands from different classes, it does not register.

    This is in the commands class:

        Main pl;
        public Economy(Main plugin) {
            pl = plugin;
    Main class

    this is on enable:
        public void onEnable() {
            this.getCommand("economy").setExecutor(new Economy(this));
  2. Offline


    Command classes must implement 'CommandExecutor' which has the 'onCommand' method. Make sure you set up the command in the plugin.yml as well.
  3. Offline


    You don't even know what you are having issues with.
  4. I have :/

    No I do not, nothing just happens.

    Im sorry for bumping but please whats happening :/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 1, 2016
  5. Offline


    Could you post your command executor?
Thread Status:
Not open for further replies.

Share This Page