01-16-2014, 03:19 AM
the cRoot function goes through all the players online and heals them. Since you are creating an SurvivalGames plugin you could heal players who are fighting in another world. You could ofcource check in the callback if the player is in the right world but that would use more CPU power, so you would have less performance.
Also what if you have 100 players online (just an example). If you were to use the cRoot function the server would go through all 100 players and heal them. If you would use the cWorld function you would only heal the players who are in the world you want to heal (like 15 or something)
Also what if you have 100 players online (just an example). If you were to use the cRoot function the server would go through all 100 players and heal them. If you would use the cWorld function you would only heal the players who are in the world you want to heal (like 15 or something)