menu
#10626587 pocketmine\permission\BanList::addBan(): Argument #3 ($expires) must be of type ?DateTime, string given, called in /server/server-data/plugins/Heal-main/src/Terpz710/AntiAltAccounts/Loader.php on line 36

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Indirect
Report date: 2024-04-03 06:25:14 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 56 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux 3e5494e89be5 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:22 UTC 2024 x86_64

Error information

Warning: the AntiAltAccounts plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Thread: Main
Message: pocketmine\permission\BanList::addBan(): Argument #3 ($expires) must be of type ?DateTime, string given, called in /server/server-data/plugins/Heal-main/src/Terpz710/AntiAltAccounts/Loader.php on line 36
File: pmsrc/src/permission/BanList
Line: #83
Type: TypeError
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
			return isset($this->list[$name]);
}
}

public function add(BanEntry $entry) : void{
$this->list[$entry->getName()] = $entry;
$this->save();
}

public function addBan(string $target, ?string $reason = null, ?\DateTime $expires = null, ?string $source = null) : BanEntry{
$entry = new BanEntry($target);
$entry->setSource($source ?? $entry->getSource());
$entry->setExpires($expires);
$entry->setReason($reason ?? $entry->getReason());

$this->list[$entry->getName()] = $entry;
$this->save();

return $entry;
}
#0 plugins/Heal-main/src/Terpz710/AntiAltAccounts/Loader(36): pocketmine\permission\BanList->addBan(string[14] 98.207.133.117, string[20] Alt Account Detected, string[10] unbannable, string[9] Ace873056)
#1 pmsrc/src/event/RegisteredListener(61): Terpz710\AntiAltAccounts\Loader->onPlayerJoin(object pocketmine\event\player\PlayerJoinEvent#159947)
#2 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerJoinEvent#159947)
#3 pmsrc/src/player/Player(895): pocketmine\event\Event->call()
#4 pmsrc/src/network/mcpe/NetworkSession(864): pocketmine\player\Player->doFirstSpawn()
#5 pmsrc/src/network/mcpe/handler/SpawnResponsePacketHandler(37): pocketmine\network\mcpe\NetworkSession->onClientSpawnResponse()
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/SetLocalPlayerAsInitializedPacket(42): pocketmine\network\mcpe\handler\SpawnResponsePacketHandler->handleSetLocalPlayerAsInitialized(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#158509)
#7 pmsrc/src/network/mcpe/NetworkSession(456): pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket->handle(object pocketmine\network\mcpe\handler\SpawnResponsePacketHandler#85877)
#8 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#158509, string[2] q.)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(214): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[48] .c*d...h.......0.C...... [email protected] ....{....)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[57] ...8.Q.._...Lj...!F......#....]v..+...ZFC.z<"8..'\q.&/E..)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(107): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#195553)
#12 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#14 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#16 pmsrc/src/Server(1696): pocketmine\snooze\SleeperHandler->sleepUntil(float 1712125514.9141)
#17 pmsrc/src/Server(1066): pocketmine\Server->tickProcessor()
#18 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[20] /server/server-data/, string[28] /server/server-data/plugins/)
#19 pmsrc/src/PocketMine(373): pocketmine\server()
#20 pmsrc(11): require(string[55] phar:///server/jars/pmmp-5.13.0.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show