This commit is contained in:
Jocy
2017-05-11 22:50:35 +02:00
parent bfec0969b0
commit 71b2f83611
2 changed files with 8 additions and 2 deletions

View File

@ -341,8 +341,14 @@ class ActionsMenu implements SidebarMenuEntryRenderable, CallbackListener, Mania
* @param Player $player
*/
public function handlePlayerJoined(Player $player) {
$maniaLink = $this->buildMenuIconsManialink($player);
if ($this->maniaControl->getAuthenticationManager()->checkRight($player, AuthenticationManager::AUTH_LEVEL_MODERATOR)) {
$maniaLink = $this->buildMenuIconsManialink(true);
} else {
$maniaLink = $this->buildMenuIconsManialink(false);
}
$this->maniaControl->getManialinkManager()->sendManialink($maniaLink, $player);
}
/**