A New Error On My Plugin HELP!

Discussion in 'Plugin Development' started by RunaDuck, May 19, 2014.

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

    RunaDuck

  2. Offline

    PimpDuck

    I need to see your code to see what you did wrong.
    RunaDuck

    Nvm I see it. Remove that line you're getting an error on and put


    Bukkit.getServer().getPluginManager().registerEvents(this, this);

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

    RunaDuck

    Oh thanks That fixed the error but now my commands dont work ill show you the full code
    http://pastebin.com/1DegAduw

    Plugin.yml

    name: StaffChat
    main: me.RoarPvP.staffchat.Main
    version: 2.3
     
  4. Offline

    TopTobster5

    RunaDuck In your plugin.yml, you need to put your commands. You don't have to put things like usage and description, but it is good practise to do so. You simple need to put the command with a colon after it like this:

    Code:
    name: StaffChat
    main: me.RoarPvP.staffchat.Main
    version: 2.3
     
    commands:
      sc:
        description: Staff Chat
        usage: /sc [message]
    
     
    RunaDuck likes this.
  5. Offline

    RunaDuck

    Thanks!
     
Thread Status:
Not open for further replies.

Share This Page