onebone / EconomyS

The economy plugin for PocketMine-MP
GNU General Public License v3.0
144 stars 188 forks source link

[EconomyShop] When someone buy an item with an shop sign the server crash #179

Closed GreenNature-MC-Server closed 9 years ago

GreenNature-MC-Server commented 9 years ago

This is the crash report: PocketMine-MP Crash Dump Tue Oct 6 15:12:45 UTC 2015

Error: Call to undefined method pocketmine\item\IronShovel::isPlaceable() File: /EconomyShop_v2.0.6.phar/src/onebone/economyshop/EconomyShop Line: 287 Type: E_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: EconomyShop v2.0.6

Code: [278] }else{ [279] unset($this->tap[$player->getName()]); [280] } [281] } [282] [283] $player->getInventory()->addItem(new Item($shop["item"], $shop["meta"], $shop["amount"])); [284] EconomyAPI::getInstance()->reduceMoney($player, $shop["price"], true, "EconomyShop"); [285] $player->sendMessage($this->getMessage("bought-item", [$shop["amount"], $shop["itemName"], $shop["price"]])); [286] $event->setCancelled(true); [287] if($event->getItem()->isPlaceable()){ [288] $this->placeQueue[$player->getName()] = true; [289] } [290] } [291] } [292] } [293] [294] public function onBreakEvent(BlockBreakEvent $event){ [295] $block = $event->getBlock(); [296] if(isset($this->shop[$block->getX().":".$block->getY().":".$block->getZ().":".$block->getLevel()->getFolderName()])){ [297] $player = $event->getPlayer();

Backtrace:

0 (): pocketmine\Server->crashDump(boolean)

PocketMine-MP version: 1.6dev #43 [Protocol 34; API 1.13.0] Git commit: 0000000000000000000000000000000000000000 uname -a: Linux host13.adm24.de 2.6.32-37-pve #1 SMP Wed Mar 18 08:19:56 CET 2015 x86_64 PHP Version: 5.6.10 Zend version: 2.6.0 OS : Linux, linux

Loaded plugins: ServerAuth 2.11 by EvolSoft for API(s) 1.11.0 mcg76_SimplePortal 2.0.3 by minecraftgenius76 for API(s) 1.12.0 VIPSlots 0.0.4 by iJoshuaHD for API(s) 1.12.0 WorldEditArt 1.0.0_betadev#048 by PEMapModder for API(s) 1.0.0 BanItem 2.1 by LDX for API(s) 1.0.0 EmptyWorld 1.0.0 by aliuly for API(s) 1.12.0 iProtector 3.1a by LDX for API(s) 1.9.0 EconomyJob 2.0.4 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1 PopupAlerts 1.3 by EvolSoft for API(s) 1.12.0 ManyWorlds 2.0.2 by aliuly for API(s) 1.10.0 CustomAlerts 1.6 by EvolSoft for API(s) 1.12.0 PvPWorlds 1 by for API(s) 1.0.0 PocketGuard 2.1.1 by MinecrafterJPN for API(s) 1.10.0 PeacefulSpawn 2.4 by LDX for API(s) 1.3.1, 1.4.0 MSpawns 1.5 by EvolSoft for API(s) 1.11.0 SimpleMessages 1.2 by Dutok for API(s) 1.0.0 EconomyAPI 2.0.8 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1 PurePerms 1.1.12 by 64FF00 for API(s) 1.13.0 EconomyAirport 2.0.4 by onebone for API(s) 1.12.0 EconomyShop 2.0.6 by onebone for API(s) 1.12.0 PureChat 1.3.0 by 64FF00 for API(s) 1.11.0

----------------------REPORT THE DATA BELOW THIS LINE-----------------------

===BEGIN CRASH DUMP=== eNrVOw1v2ziWf4XnFtjkYPk7TuJDBsik6WwGTett0u3eVoOAkihbjSRqRCquZ9D/fu89UhLleGfS j8XdpS0iPpLv+4uU+ntPJ5noLcaz2Qz+TedH/Z4oS1n2Fr/39LaAqd7l3eXbt2/e9vq9TCjFVwi7 4GnKtGRVHok4yUXEMqHXMmKFDO+FzgDk+4kWme9flTK/WcsHkS4WiVqmPBQ8SMXBISCMkxSxDS9D mctsC8uKu4fJYDSYD4o1L4eqDIcyFwH8GwqzRsEadz1gSYFabzE5Of7c7xVptUpy5LqzJJSRQJEm xycw5+v6z2eRKvE7LJgcn3YmfF3lSuiD53qdKO8HzYsPz4uUb0Xp/bAS+jXPQIJfDv8Lt56MujgJ NnZgBjIBCD1MnSkX6VX+IHIty+3BofcDj6Ir0N9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hhed2MEz2jUUFuwl6/ObxfH/emePxO68BaftMhRYHrj eQHlxv2YGV3FHUPeX/UWFBv9XhHiYjtQv6aJFlPzwbVnPu7+zXyBbd79BiE0MOtmPV6n5hEvW4D5 /zH1qCrTZhAnKfgzoR6bF8qxLprZVdQ+Zi14DRFrPjyE9R+Vfdtl3j9ngbnsbRZDH7gtdCuM5shb 5Ip+s3xFHOAr3yKEBq7dvAXh6aNv+8SOBsgpaoF5+LJoMjoaTeHx+RUekMP5yUkwD4JwOoqmcx5P eTidxVE0C46Do+D45DgWR/DDngOl5RpV1HxbVUiVfGoNYA/odgF9Ev5WxPZ0CVCiJ+L4JIjC+VEw CgSPT+IZj8Q8Hs3jk9mJmEezaRRHJ5M50VPrTLY6VBRGqitpYgwBi7W8FzkUl7KBvBf8HtKAURS9 Nt1yeo0ytl/r/JYUZjQZHPU+f/4f95wMhg== ===END CRASH DUMP===

Pub4Game commented 9 years ago

Use a newer version of the plugin!

GreenNature-MC-Server commented 9 years ago

I'm using EconomyShop 2.0.6 and EconomyAPI 2.0.8! Are there not the newest versions?

Pub4Game commented 9 years ago

Yes, https://github.com/onebone/EconomyS/releases/tag/v5.7

GreenNature-MC-Server commented 9 years ago

Ok! Thanks! forums.pocketmine.net don't updatet EconomyS yet! xD