menu
#4220201 mt_rand(): max(0) is smaller than min(900)

Submitted by PocketMine-MP 3.12.2

General information

Version: 3.12.2
Git commit: 9b6b3f50
Plugin involvement: Direct
Report date: 2020-05-23 03:49:54 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: win
System banner: Windows NT DESKTOP-N02209I 10.0 build 18363 (Windows 10) AMD64

Error information

Warning: the CustomQuery plugin was directly involved in this crash. Please contact the plugin author.
Message: mt_rand(): max(0) is smaller than min(900)
File: plugins/CustomQuery.phar/src/CustomQuery/iZeaoGamer/Main
Line: #98
Error level: ErrorException
89
90
91
92
93
94
95
96
97
98
99
100
101
		$config = new Config($this->getDataFolder() . "config.yml", Config::YAML, array());
if($config->get("enable-serverlist-motd") === true){
$serverList = $config->get("motd-serverlist-message");
$event->setServerName(TextFormat::colorize($serverList)); //To-Do implement some variables for this option.
}
$config = new Config($this->getDataFolder() . "config.yml", Config::YAML, array());
if($config->get("fake-slots") === true){
$minPlayerCount = $config->get("min-slots");
$maxPlayerCount = $config->get("max-slots");
$event->setPlayerCount(mt_rand($minPlayerCount, $maxPlayerCount));
}
}
}
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[42] mt_rand(): max(0) is smaller than min(900), string[105] phar://C:/Users/ZaeLoki/Documents/pocketmine/plugins/CustomQuery.phar/src/Custom, integer 98, array[4])
#1 plugins/CustomQuery.phar/src/CustomQuery/iZeaoGamer/Main(98): mt_rand(integer 900, integer 0)
#2 src/pocketmine/plugin/MethodEventExecutor(42): CustomQuery\iZeaoGamer\Main->onQuery(object pocketmine\event\server\QueryRegenerateEvent)
#3 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object CustomQuery\iZeaoGamer\Main, object pocketmine\event\server\QueryRegenerateEvent)
#4 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\QueryRegenerateEvent)
#5 src/pocketmine/Server(2400): pocketmine\event\Event->call()
#6 src/pocketmine/Server(2143): pocketmine\Server->tick()
#7 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1584): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[38] C:\Users\ZaeLoki\Documents\pocketmine\, string[46] C:\Users\ZaeLoki\Documents\pocketmine\plugins\)
#10 src/pocketmine/PocketMine(295): pocketmine\server()
#11 (11): require(string[93] phar://C:/Users/ZaeLoki/Documents/pocketmine/PocketMine-MP.phar/src/pocketmine/P)

Loaded Plugins

  • Show

Server Settings

  • Show