Internal Error - Help?

Discussion in 'Plugin Development' started by Rocky_990, May 4, 2015.

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

    Rocky_990

    Hello again - sorry to annoy with my questions haha,

    I've recently been working on a plugin to assign warnings to a user where mods should be able to add, remove and view a players warnings.
    The warnings for EACH player should be stored in the config.yml.

    The problem is, when I the commands, it says that there is an internal error and to check the console for more information - but I can not figure out what the issue is.

    main:
    http://pastebin.com/bF0JBMVf

    plugin.yml:
    http://pastebin.com/XUDdke4s

    Console output for /warn view (changes very slightly on each command which won't work: /warn remove, /warn view - /warn reload works):
    http://pastebin.com/P8Jrw2qy

    As for /warn add, nothing shows up or happens when I run the command.

    I'm unsure if this is a silly mistake or perhaps a large bug, but any help is greatly appreciated :)

    ~Rocky_990
     
  2. Offline

    teej107

  3. Offline

    mine-care

    In your error, line 18 is all you need :p
    http://bukkit.org/threads/how-to-re...ubleshoot-your-own-plugins-by-yourself.32457/
    Also few notices:
    Don't compare objects with == use.equals(Object param) instead (line 36 on main class)
    Follow naming conventions (main -> Main)
    In your commands you check for too many arguments and not for too few arguments :/
    Prefer to use if, else if, else statement since args[0] can't be both add, remove and so on so it is essentially wasting resources.
    Good luck!
    Edit: ninja'ed by @teej107
     
Thread Status:
Not open for further replies.

Share This Page