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){
|
||||
if($line != ""){
|
||||
$output = "";
|
||||
$end = strpos($line, " ");
|
||||
if($end === false){
|
||||
$end = strlen($line);
|
||||
@ -247,9 +248,6 @@ class ConsoleAPI{
|
||||
}
|
||||
}
|
||||
|
||||
if(!(isset($output)))
|
||||
$output = "";
|
||||
|
||||
if($output != "" and ($issuer instanceof Player)){
|
||||
$issuer->sendChat(trim($output));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user