minecraftgenius76 / Spleef

New MCPE mini-game plug-in for Pocketmine Server that self-reset the arena on schedule basis
6 stars 7 forks source link

plugin on build 1131 1.5dev crashes server while give or remove? kits #16

Open vvzar opened 9 years ago

vvzar commented 9 years ago

Error: Call to protected method pocketmine\Player::updateMovement() from context 'mcg76\game\spleef\SpleefGameKit' File: /mcg76_Spleef_v1.5.5.phar/src/mcg76/game/spleef/SpleefGameKit Line: 476 Type: E_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: mcg76_Spleef v1.5.5

Code: [467] $p->getInventory ()->addItem ( $item ); [468] } [469] $foods = $teamKit ["foods"]; [470] foreach ( $foods as $w ) { [471] $item = new Item ( $w [0], $w [1], $w [2] ); [472] $p->getInventory ()->addItem ( $item ); [473] } [474] $p->getInventory ()->setHeldItemIndex ( 0 );
[475] $p->getInventory()->sendArmorContents($p->getInventory()->getViewers()); [476] $p->updateMovement (); [477] } [478]
[479] /* [480] * Remove Game Kits and Inventory [481] * [482] * @param Player $bp [483] / [484] public function removePlayerGameKit(Player $bp) { [485] $bp->getInventory ()->setBoots ( new Item ( Item::AIR) ); [486] $bp->getInventory ()->setChestplate ( new Item ( Item::AIR) );

Backtrace:

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

PocketMine-MP version: 1.5dev #1131 [Protocol 25; API 1.12.0] Git commit: 0000000000000000000000000000000000000000 uname -a: Linux mpe 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 PHP Version: 5.6.4 Zend version: 2.6.0 OS : Linux, linux

minecraftgenius76 commented 9 years ago

spleef 1.5 was design for PM 1.4 so it's not compatible with PM 1.5 yet. please wait for update.

On Sun, May 10, 2015 at 5:40 PM, vvzar notifications@github.com wrote:

Error: Call to protected method pocketmine\Player::updateMovement() from context 'mcg76\game\spleef\SpleefGameKit' File: /mcg76_Spleef_v1.5.5.phar/src/mcg76/game/spleef/SpleefGameKit Line: 476 Type: E_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: mcg76_Spleef v1.5.5

Code: [467] $p->getInventory ()->addItem ( $item ); [468] } [469] $foods = $teamKit ["foods"]; [470] foreach ( $foods as $w ) { [471] $item = new Item ( $w [0], $w [1], $w [2] ); [472] $p->getInventory ()->addItem ( $item ); [473] } [474] $p->getInventory ()->setHeldItemIndex ( 0 );

[475] $p->getInventory()->sendArmorContents($p->getInventory()->getViewers()); [476] $p->updateMovement (); [477] } [478]

[479] /* [480] * Remove Game Kits and Inventory [481] [482] * @param https://github.com/param Player $bp [483] */ [484] public function removePlayerGameKit(Player $bp) { [485] $bp->getInventory ()->setBoots ( new Item ( Item::AIR) ); [486] $bp->getInventory ()->setChestplate ( new Item ( Item::AIR) );

Backtrace:

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

PocketMine-MP version: 1.5dev #1131 [Protocol 25; API 1.12.0] Git commit: 0000000000000000000000000000000000000000 uname -a: Linux mpe 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 PHP Version: 5.6.4 Zend version: 2.6.0 OS : Linux, linux

— Reply to this email directly or view it on GitHub https://github.com/minecraftgenius76/Spleef/issues/16.

vvzar commented 9 years ago

Cool, if it`ll be so. I comment strings $p->updateMovement (); and $bp in source. And all seems to be ok. What is this string doing?