Changed Internal Callbacks formats to use objects directly instead of an array
This commit is contained in:
@ -79,10 +79,9 @@ class CustomUIManager implements CallbackListener, TimerListener {
|
||||
/**
|
||||
* Handle PlayerJoined Callback
|
||||
*
|
||||
* @param array $callback
|
||||
* @param Player $player
|
||||
*/
|
||||
public function handlePlayerJoined(array $callback) {
|
||||
$player = $callback[1];
|
||||
public function handlePlayerJoined(Player $player) {
|
||||
$this->updateManialink($player);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user