Online players broadcast when >= 2 players. fixes #48

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-11 14:19:02 +01:00
parent 107d71f291
commit 6ab08020c3

View File

@ -102,7 +102,7 @@ class PocketMinecraftServer{
$this->action(1000000 * 60, '$this->reloadConfig();');
$this->action(1000000 * 60 * 10, '$this->custom = array();');
if($this->api !== false){
$this->action(1000000 * 80, '$this->chat(false, "Online (".count($this->clients)."): ".implode(", ",$this->api->player->online()));');
$this->action(1000000 * 80, '$cnt = count($this->clients); if($cnt > 1){$this->chat(false, "Online (".$cnt."): ".implode(", ",$this->api->player->online()));}');
}
$this->action(1000000 * 120, '$this->debugInfo(true);');
}