onebone / EconomyS

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

Help!!!! This crashes my server! And I need to fix it fast! #178

Closed GODLIKE5 closed 9 years ago

GODLIKE5 commented 9 years ago

PocketMine-MP Crash Dump Fri Oct 2 23:00:46 UTC 2015

Error: Call to undefined method pocketmine\item\ItemBlock::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]

onebone commented 9 years ago

Check 'php7' branch.

GODLIKE5 commented 9 years ago

But.... Its not running php7

Pub4Game commented 9 years ago

@GODLIKE5 use https://github.com/onebone/EconomyS/tree/php7

onebone commented 9 years ago

@GODLIKE5 Just naming miss. It is just developing branch for PM 1.6.

GODLIKE5 commented 9 years ago

How can i get it for 1.6? Link plz

onebone commented 9 years ago

@GODLIKE5 See what @Pub4Game said.