error that i cant fix

Discussion in 'Plugin Development' started by xguysprison, Nov 5, 2014.

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

    xguysprison

  2. Offline

    Barinade

    Command not in plugin.yml perhaps?
     
  3. Offline

    xguysprison

  4. xguysprison Post command class and also don't use static to get the main class. Instead do a constructor.
     
  5. Offline

    xguysprison

  6. xguysprison I would use cmd.getName().equalsIgnoreCase("xcare") instead of .equals this allows for things like /XcArE.
     
  7. Offline

    Barinade

    ChestHandler.java line 25
     
  8. Code:
    Caused by: java.lang.NullPointerException
        at org.bukkit.ChatColor.translateAlternateColorCodes(ChatColor.java:206) ~[spigot.jar:git-Spigot-1542]
        at dev.xguys.com.util.ChestHandler.givePlayerChest(ChestHandler.java:25) ~[?:?]
        at dev.xguys.com.commands.XCare.onCommand(XCare.java:46) ~[?:?]
     
  9. Offline

    Barinade

    Main.getInstance().getConfig().getString("ChestLore.line2")
    Doesn't exist?
     
  10. Offline

    xguysprison

    ima send u guys these codes tomorrow ill also try to fix them myself cya

    Barinade
    yeah i made the choice to remove it again why ?

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

    Barinade

    Chill with the multiposting, lol

    If you're trying to read something that doesn't exist then yeah, that's what NPE means
     
Thread Status:
Not open for further replies.

Share This Page