mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Added capability to get/set screen height in lines for each CommandSender to alter page sizes of command output such as /help (#1144)
This commit is contained in:
@@ -60,11 +60,7 @@ class HelpCommand extends VanillaCommand{
|
||||
$pageNumber = 1;
|
||||
}
|
||||
|
||||
if($sender instanceof ConsoleCommandSender){
|
||||
$pageHeight = PHP_INT_MAX;
|
||||
}else{
|
||||
$pageHeight = 7;
|
||||
}
|
||||
$pageHeight = $sender->getScreenLineHeight();
|
||||
|
||||
if($command === ""){
|
||||
/** @var Command[][] $commands */
|
||||
|
Reference in New Issue
Block a user