Bukkit plugin development errors!

Discussion in 'Plugin Development' started by lewis_hutsby, Dec 5, 2014.

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

    lewis_hutsby

    I have errors with making a /Website plugin, I have put it in my server plugins files and it won't show up when I do /pl, Here is a pastebin of the coding: http://pastebin.com/akq7qs5k, Thanks!
     
  2. Offline

    TGRHavoc

  3. Offline

    Skionz

    lewis_hutsby Show us the stack-trace. My bet is that something is wrong with your plugin.yml file.
     
  4. Offline

    lewis_hutsby

    plugin.yml:
    name: ZeekStaff
    version: 1.0
    main: me.lewishutsby.ZeekStaff
    author: lewishutsby
    commands:
    staff:
     
  5. Offline

    mythbusterma

    lewis_hutsby

    That class isn't a listener, so why do you have it extending Listener? Also, you don't have it registering the command handler, so how would Bukkit know how to execute your command.
     
  6. Offline

    Skionz

  7. 1: return true
    2: Why`re you implemeting Listeners?
    3: not enough arguments on commands:
    Code:
    commands:
        staff:
            usage: /<command>
            description: This is a description!
    4: Why send empty spaces on your code?
    5: if you want only players to be able to run the command, check first if the sender is a player. If you want the console to use too the command, use "sender" instead of "p".
    6: "&" isn`t valid, it wont show you colors. use instead ChatColor.COLOR_NAME
     
  8. Offline

    Experminator

    lewis_hutsby
    - Do a player check. Or use "sender" instead "p". Else you get a error.
    - You don't use the Listener. There is no events.
    - Add a "return true" under the last message. Else you get a usage message of that command.
    - And use "ChatColor.YELLOW" instead "&e"
     
Thread Status:
Not open for further replies.

Share This Page