mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-02 08:09:55 +00:00
Remove keycodes from console input
This commit is contained in:
parent
c973abc36f
commit
14a40ac11e
@ -273,7 +273,7 @@ class ConsoleAPI{
|
||||
return;
|
||||
}
|
||||
if($this->loop->line !== false){
|
||||
$line = trim($this->loop->line);
|
||||
$line = preg_replace("#\\x1b\\x5b([^\\x1b]*\\x7e|[\\x40-\\x50])#", "", trim($this->loop->line));
|
||||
$this->loop->line = false;
|
||||
$output = $this->run($line, "console");
|
||||
if($output != ""){
|
||||
|
@ -60,7 +60,7 @@ ini_set("memory_limit", "128M"); //Default
|
||||
define("LOG", true);
|
||||
define("START_TIME", microtime(true));
|
||||
define("MAJOR_VERSION", "Alpha_1.3.10dev");
|
||||
define("CURRENT_MINECRAFT_VERSION", "0.7.6 alpha");
|
||||
define("CURRENT_MINECRAFT_VERSION", "v0.7.6 alpha");
|
||||
define("CURRENT_API_VERSION", 10);
|
||||
define("CURRENT_PHP_VERSION", "5.5");
|
||||
$gitsha1 = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user