mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Fix /me @all critical server crash bug. Fix #840. Disabled usage of @all for non-ops.
This commit is contained in:
parent
780f60554d
commit
58fce0e939
@ -204,9 +204,16 @@ class ConsoleAPI{
|
|||||||
break;
|
break;
|
||||||
case "a":
|
case "a":
|
||||||
case "all":
|
case "all":
|
||||||
$output = "";
|
if($this->server->api->ban->isOp($issuer->username))
|
||||||
foreach($this->server->api->player->getAll() as $p){
|
{
|
||||||
$output .= $this->run($cmd . " ". substr_replace($params, $p->username, $selector[1] + $offsetshift - 1, strlen($selector[0]) + 1), $issuer, $alias);
|
$output = "";
|
||||||
|
foreach($this->server->api->player->getAll() as $p){
|
||||||
|
$output .= $this->run($cmd . " ". substr_replace($params, $p->username, $selector[1] + $offsetshift - 1, strlen($selector[0]) + 1), $issuer, $alias);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$issuer->sendChat("You don't have permissions to use this command.\n");
|
||||||
}
|
}
|
||||||
return $output;
|
return $output;
|
||||||
case "r":
|
case "r":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user