- Improved Join/Leave messages

- Moved Server Commands into separate class
- Added \Server namespace
This commit is contained in:
Steffen Schröder
2013-11-19 20:29:37 +01:00
parent b389b32d88
commit a9b1842a6f
8 changed files with 249 additions and 217 deletions

View File

@ -20,11 +20,11 @@ class ManialinkIdHandler {
* @return array with manialink Ids
*/
public function reserveManiaLinkIds($count) {
$mlIds = array();
$manialinkIds = array();
for ($i = 0; $i < $count; $i++) {
array_push($mlIds, ++$this->maniaLinkIdCount);
array_push($manialinkIds, $this->maniaLinkIdCount++);
}
return $mlIds;
return $manialinkIds;
}
}