Wertzui123 / BedrockClans

An advanced PocketMine-MP clan plugin with many creative features
GNU General Public License v3.0
30 stars 8 forks source link

Sending an amount of money into clan error #25

Closed Adam1609 closed 3 years ago

Adam1609 commented 3 years ago

[13:13:05] [Server thread/CRITICAL]: TypeError: "Return value of Wertzui123\BedrockClans\BCPlayer::getMoney() must be of the type int, float returned" (EXCEPTION) in "plugins/BedrockClans-master/src/Wertzui123/BedrockClans/BCPlayer" at line 141 [13:13:05] [Server thread/CRITICAL]: #0 plugins/BedrockClans-master/src/Wertzui123/BedrockClans/commands/subcommands/deposit(43): Wertzui123\BedrockClans\BCPlayer->getMoney() [13:13:05] [Server thread/CRITICAL]: #1 plugins/BedrockClans-master/src/Wertzui123/BedrockClans/commands/clancmd(58): Wertzui123\BedrockClans\commands\subcommands\deposit->execute(object pocketmine\Player, array[1]) [13:13:05] [Server thread/CRITICAL]: #2 src/pocketmine/command/SimpleCommandMap(248): Wertzui123\BedrockClans\commands\clancmd->execute(object pocketmine\Player, string[4] clan, array[1]) [13:13:05] [Server thread/CRITICAL]: #3 src/pocketmine/Server(1811): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[22] clan deposit 100000000) [13:13:05] [Server thread/CRITICAL]: #4 src/pocketmine/Player(2322): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[22] clan deposit 100000000) [13:13:05] [Server thread/CRITICAL]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(239): pocketmine\Player->chat(string[23] /clan deposit 100000000) [13:13:05] [Server thread/CRITICAL]: #6 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [13:13:05] [Server thread/CRITICAL]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [13:13:05] [Server thread/CRITICAL]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket) [13:13:05] [Server thread/CRITICAL]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [13:13:05] [Server thread/CRITICAL]: #10 src/pocketmine/Player(3273): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [13:13:05] [Server thread/CRITICAL]: #11 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [13:13:05] [Server thread/CRITICAL]: #12 vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[20] 14.169.130.237 49983, object raklib\protocol\EncapsulatedPacket, integer 0) [13:13:05] [Server thread/CRITICAL]: #13 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [13:13:05] [Server thread/CRITICAL]: #14 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [13:13:05] [Server thread/CRITICAL]: #15 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [13:13:05] [Server thread/CRITICAL]: #16 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [13:13:05] [Server thread/CRITICAL]: #17 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1607839984.9301) [13:13:05] [Server thread/CRITICAL]: #18 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor() [13:13:05] [Server thread/CRITICAL]: #19 src/pocketmine/Server(1588): pocketmine\Server->start() [13:13:05] [Server thread/CRITICAL]: #20 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[29] D:\server backup\Skyblock 12\, string[37] D:\server backup\Skyblock 12\plugins) [13:13:05] [Server thread/CRITICAL]: #21 src/pocketmine/PocketMine(304): pocketmine\server()

This happen when deposit into a clan bank

Wertzui123 commented 3 years ago

This was fixed in 344e562.