some fixes
This commit is contained in:
parent
fd2f9faa6c
commit
28e4a57a78
@ -367,6 +367,11 @@ class PlayerActions {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($target->isFakePlayer()) {
|
||||||
|
$this->maniaControl->chat->sendError('It is not possible to Ban a bot', $admin->login);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$success = $this->maniaControl->client->ban($target->login, $message);
|
$success = $this->maniaControl->client->ban($target->login, $message);
|
||||||
if(!$success) {
|
if(!$success) {
|
||||||
$this->maniaControl->chat->sendError('Error occurred: ' . $this->maniaControl->getClientErrorText(), $admin->login);
|
$this->maniaControl->chat->sendError('Error occurred: ' . $this->maniaControl->getClientErrorText(), $admin->login);
|
||||||
|
@ -102,11 +102,8 @@ class ServerCommands implements CallbackListener, CommandListener, ManialinkPage
|
|||||||
$this->maniaControl->authenticationManager->sendNotAllowed($player);
|
$this->maniaControl->authenticationManager->sendNotAllowed($player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$success = $this->maniaControl->client->cancelVote();
|
$this->maniaControl->client->cancelVote();
|
||||||
if(!$success) {
|
|
||||||
$this->maniaControl->chat->sendError('Error occurred: ' . $this->maniaControl->getClientErrorText(), $player->login);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$this->maniaControl->chat->sendInformation('$<' . $player->nickname . '$> canceled the Vote!');
|
$this->maniaControl->chat->sendInformation('$<' . $player->nickname . '$> canceled the Vote!');
|
||||||
|
|
||||||
// Trigger callback
|
// Trigger callback
|
||||||
|
Loading…
Reference in New Issue
Block a user