fixed bug
This commit is contained in:
committed by
Steffen Schröder
parent
317d6c506b
commit
b18e736c57
@ -164,7 +164,7 @@ class PlayerActions {
|
||||
}
|
||||
$target = $this->maniaControl->playerManager->getPlayer($targetLogin);
|
||||
|
||||
if (!$admin || !$target) {
|
||||
if (!$admin || !$target || $target->isSpectator) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user