fixed bug
This commit is contained in:
1 parent
317d6c506b
commit
b18e736c57
2 files changed
+5
-1
No files matched your search
@@ -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