mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 03:35:33 +00:00
Simplificated fix
This commit is contained in:
parent
85af510d74
commit
dfd451f620
@ -168,6 +168,7 @@ class ConsoleAPI{
|
|||||||
|
|
||||||
public function run($line = "", $issuer = "console", $alias = false){
|
public function run($line = "", $issuer = "console", $alias = false){
|
||||||
if($line != ""){
|
if($line != ""){
|
||||||
|
$output = "";
|
||||||
$end = strpos($line, " ");
|
$end = strpos($line, " ");
|
||||||
if($end === false){
|
if($end === false){
|
||||||
$end = strlen($line);
|
$end = strlen($line);
|
||||||
@ -246,9 +247,6 @@ class ConsoleAPI{
|
|||||||
$output = $this->defaultCommands($cmd, $params, $issuer, $alias);
|
$output = $this->defaultCommands($cmd, $params, $issuer, $alias);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(isset($output)))
|
|
||||||
$output = "";
|
|
||||||
|
|
||||||
if($output != "" and ($issuer instanceof Player)){
|
if($output != "" and ($issuer instanceof Player)){
|
||||||
$issuer->sendChat(trim($output));
|
$issuer->sendChat(trim($output));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user