Solved plugin coding error (need assistance)

Discussion in 'Plugin Help/Development/Requests' started by P_Squidy, May 25, 2016.

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

    P_Squidy

    So im working on a plugin for an HCF server and the goal of the plugin is when you click sertain items with a certain "kit" on you give effects to your faction members but im running into an error over and over again, can someone help?
    attached is a picture of the error

    thanks in advance may 25 2016 (6).png
     
  2. Offline

    redtsch

    First off, you should post your code using the code formatting tool.
    Second, one thing i see is that you are using Bukkit.getOnlinePlayers().lenght. If you are using Bukkit API 1.9.x, you should use Bukkit.getOnlinePlayers().size();[/code]
    Also, im not good with HashMaps so i can't help you that much..
     
  3. Offline

    P_Squidy

    im actually not using 1.9.x API im using the 1.8.X API is it the same?
     
  4. Offline

    timtower Administrator Administrator Moderator

    @P_Squidy No, there are some changes. But this isn't related to that.
    You are trying to set an array of players to a single player.
    Get rid of the chaining that you have, try again.
     
  5. Offline

    P_Squidy

    i will try that, thank you very much

    EDIT: It worked thank you all very much
     
  6. Offline

    redtsch

    If you have the info you need, mark thread as solved.
     
Thread Status:
Not open for further replies.

Share This Page