Get remaining players

Discussion in 'Plugin Development' started by hostadam, Sep 21, 2017.

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

    hostadam

    So, I am working on a UHC plugin currently, whenever a player dies I want a method where it checks how many remaining players there are, if the game type is FFA and there is 1 player left it will end the game. (Already completed). Now I have a problem, I already know how to check if the remaining players is equal to the team size, and if it is I want it to loop through the players to see if they're in the same team. How would I do this?
     
  2. Offline

    Minesuchtiiii

    So you want to check how many players are still alive? In this case just create a method which returns the size of the list (or where ever you have the players that are alive)
     
Thread Status:
Not open for further replies.

Share This Page