menu
#10302338 Call to undefined method pocketmine\console\ConsoleCommandSender::getXuid()

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 18:04:56 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 58 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: Call to undefined method pocketmine\console\ConsoleCommandSender::getXuid()
File: plugins/Kitmap/src/Kitmap/Commands/NickCommand
Line: #31
Type: Error
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
		$this->usageMessage = $usageMessage ?? ("/" . $name);
$this->setAliases($aliases);

$this->setPermission(DefaultPermissionNames::BROADCAST_USER);
}

public function execute(CommandSender $sender, string $commandLabel, array $args): void{


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

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

$timeremaining = $this->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;
#0 pmsrc/src/command/SimpleCommandMap(212): Kitmap\Commands\NickCommand->execute(object pocketmine\console\ConsoleCommandSender#118370, string[4] nick, array[0])
#1 pmsrc/src/Server(1434): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\console\ConsoleCommandSender#118370, string[4] nick)
#2 pmsrc/src/Server(1856): pocketmine\Server->dispatchCommand(object pocketmine\console\ConsoleCommandSender#118370, string[4] nick)
#3 pmsrc/src/Server(1696): pocketmine\Server->tick()
#4 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#5 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\)
#6 pmsrc/src/PocketMine(364): pocketmine\server()
#7 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