fixed bug
This commit is contained in:
parent
317d6c506b
commit
b18e736c57
@ -164,7 +164,7 @@ class PlayerActions {
|
|||||||
}
|
}
|
||||||
$target = $this->maniaControl->playerManager->getPlayer($targetLogin);
|
$target = $this->maniaControl->playerManager->getPlayer($targetLogin);
|
||||||
|
|
||||||
if (!$admin || !$target) {
|
if (!$admin || !$target || $target->isSpectator) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -352,6 +352,10 @@ class ChatMessagePlugin implements CommandListener, Plugin {
|
|||||||
$this->maniaControl->chat->sendChat($msg, null, false);
|
$this->maniaControl->chat->sendChat($msg, null, false);
|
||||||
|
|
||||||
if ($this->maniaControl->settingManager->getSetting($this, self::SETTING_AFK_FORCE_SPEC)) {
|
if ($this->maniaControl->settingManager->getSetting($this, self::SETTING_AFK_FORCE_SPEC)) {
|
||||||
|
if($player->isSpectator){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// force into spec
|
// force into spec
|
||||||
try {
|
try {
|
||||||
$this->maniaControl->client->forceSpectator($player->login, 3);
|
$this->maniaControl->client->forceSpectator($player->login, 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user