mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 23:15:29 +00:00
Merge branch 'next-minor' into next-major
This commit is contained in:
commit
53cae8911d
@ -609,6 +609,10 @@ class Server{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated This method's results are unpredictable. The string "Steve" will return the player named "SteveJobs",
|
||||||
|
* until another player named "Steve" joins the server, at which point it will return that player instead. Use
|
||||||
|
* {@link Server::getPlayersByPrefix()} instead.
|
||||||
|
*
|
||||||
* Returns an online player whose name begins with or equals the given string (case insensitive).
|
* Returns an online player whose name begins with or equals the given string (case insensitive).
|
||||||
* The closest match will be returned, or null if there are no online matches.
|
* The closest match will be returned, or null if there are no online matches.
|
||||||
*
|
*
|
||||||
@ -1851,10 +1855,12 @@ class Server{
|
|||||||
$this->getMemoryManager()->check();
|
$this->getMemoryManager()->check();
|
||||||
|
|
||||||
if($this->console !== null){
|
if($this->console !== null){
|
||||||
|
Timings::$serverCommand->startTiming();
|
||||||
while(($line = $this->console->readLine()) !== null){
|
while(($line = $this->console->readLine()) !== null){
|
||||||
$this->consoleSender ??= new ConsoleCommandSender($this, $this->language);
|
$this->consoleSender ??= new ConsoleCommandSender($this, $this->language);
|
||||||
$this->dispatchCommand($this->consoleSender, $line);
|
$this->dispatchCommand($this->consoleSender, $line);
|
||||||
}
|
}
|
||||||
|
Timings::$serverCommand->stopTiming();
|
||||||
}
|
}
|
||||||
|
|
||||||
Timings::$serverTick->stopTiming();
|
Timings::$serverTick->stopTiming();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user