Separate names with a comma.
Comments in 'Plugin Development' started by Legomite, Mar 19, 2014.
Does anyone know the code to find the amount of players in a single world?
Well you meant number or count of players, not amount.
Anyway you can get an array of player objects by PlayerAPI::getAll(Level). Call it in a non-static manner. Use LevelAPI::get($name) non-statically to get the level object. Count the elements in the array to vet the number if platers.