Teleport after a few Players Join

Discussion in 'Plugin Development' started by Sohx, Feb 23, 2016.

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

    Sohx

    Last edited by a moderator: Feb 23, 2016
  2. Online

    timtower Moderator Moderator

    @Sohx Get the size of the list and compare that instead of comparing a list with 3
     
  3. Offline

    Sohx

    @timtower Can you give an Example Code? I'm not sure how to do it.
     
  4. Online

    timtower Moderator Moderator

    @Sohx if(Bukkit.getOnlinePlayers().equals(3)) {
    That check, redo it. I am not spoonfeeding that.
     
  5. Offline

    Sohx

    Ok, i had a new idea of checking it "if (Bukkit.getOnlinePlayers().size() > 2) {", i hope it will work.
     
  6. Online

    timtower Moderator Moderator

    @Sohx It will, it is what you need.
     
  7. Offline

    boomboompower

  8. Online

    timtower Moderator Moderator

    That is a different discussion
     
    boomboompower likes this.
Thread Status:
Not open for further replies.

Share This Page