Checking a linked list.

Discussion in 'Plugin Development' started by HackintoshMan, Apr 15, 2013.

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

    HackintoshMan

    I have 2 linked lists. One for the red team and one for the blue team. When I check to see if a player is in the list, nothing happens. I am using the following.
    Code:
    if (MCFTF2.blue.contains(player)) {
    For teams should I use the new scoreboard API to manage them?
    http://forums.bukkit.org/threads/tutorial-scoreboards-teams-with-the-bukkit-api.139655/

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

    Digi

    Using Player object ? That might be the cause, switch to String and use player's name instead.

    However, player might really not be in the list... debug, print the contents of the list and stuff like that, trace your code back....
     
  3. Offline

    HackintoshMan

    Would teams be better if i used the new scoreboard API?
     
  4. Offline

    Tirelessly

    It'd be harder for you to use them, if that counts.
     
  5. Offline

    HackintoshMan

    I am converting right now. The api looks pretty easy so far. And do I have to use a scoreboard with it or can I just use the team part of it?
     
Thread Status:
Not open for further replies.

Share This Page