How to Register Commands?

Discussion in 'Plugin Development' started by Requadin, Aug 28, 2012.

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


    Finally, i made my code give no errors and i could try it in-game. However when i execute a command that my plugin should run, Minecraft says "Unknown command"
    I wrote my commands into plugin.yml File properly and the class has "implements CommandExecutor"
    How do i register commands on onEnable? I mean, what is the exact code that i have to add?
    Thank you for helping.
  2. Offline


    public void onEnable() {
    Requadin likes this.
  3. Offline


    Ok that solved my problem, thank you.
Thread Status:
Not open for further replies.

Share This Page