menu
#10302306 Undefined variable $timeCooldown

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 17:58:06 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 37 seconds

System Information

PHP version: 8.1.24
JIT status: Not available
Operating system: win
System banner: Windows NT BAPTISTELBH 10.0 build 22631 (Windows 11) AMD64

Error information

Warning: the Kitmap plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined variable $timeCooldown
File: plugins/Kitmap/src/Kitmap/Commands/NickCommand
Line: #38
Type: ErrorException
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

if(!$sender instanceof Player){ return; }

if(!empty($this->nickCooldown[$sender->getXuid()])){
$time = time() - $this->nickCooldown[$sender->getXuid()];
var_dump(floor($time / 60));

if($time <= $this->timeCooldown){

$timeremaining = $timeCooldown - $time;
$minutes = floor($timeremaining / 60);
$seconds = $timeremaining - $minutes;

$sender->sendMessage("§cVous ne pourrez utilisez cette commande que dans §4" . $minutes . " §cminute(s) §4" . $seconds);
return;
}
}

if(!empty($args[0])){

#0 plugins/Kitmap/src/Kitmap/Commands/NickCommand(38): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[32] Undefined variable $timeCooldown, string[104] C:\Users\Baptiste\Documents\Programmation\FinalServer\plugins\Kitmap\src\Kitmap\, int 38)
#1 pmsrc/src/command/SimpleCommandMap(212): Kitmap\Commands\NickCommand->execute(object pocketmine\player\Player#159965, string[4] nick, array[0])
#2 pmsrc/src/Server(1434): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#159965, string[5] nick )
#3 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#159965, string[5] nick )
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(821): pocketmine\player\Player->chat(string[6] /nick )
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#71902)
#6 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#77189)
#7 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#71902, string[28] M./nick .&H........!.......J)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[77] ...e...L.V`P.8.j..).g.(^\ ......f.#C..},K..:.q....*.Y3O:[email protected].....=#..7a.^.$..)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[86] .......n....... +[email protected]`.b..K.h!5.....z.....t...n.p<.u......A...% U..o~)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#161116)
#11 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#13 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#15 pmsrc/src/Server(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707760686.4137)
#16 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[54] C:\Users\Baptiste\Documents\Programmation\FinalServer\, string[62] C:\Users\Baptiste\Documents\Programmation\FinalServer\plugins\)
#18 pmsrc/src/PocketMine(364): pocketmine\server()
#19 pmsrc(11): require(string[98] phar://C:/Users/Baptiste/Documents/Programmation/FinalServer/PocketMine-MP.phar/)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show