HotshotHD / PocketMorph

14 stars 9 forks source link

PHP 7 error #2

Closed Blubberboy333 closed 8 years ago

Blubberboy333 commented 8 years ago

PocketMine-MP Crash Dump Sun Apr 10 14:16:47 ACT 2016

Error: Cannot use pocketmine\nbt\tag\Int as Int because 'Int' is a special class name File: /PocketMorph.phar/src/pocketmorph/morph/MorphZombieVillager Line: 6 Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: PocketMorph v1.0.0

Code: [1] <?php [2] [3] namespace pocketmorph\morph; [4] [5] use pocketmine\entity\Entity; [6] use pocketmine\nbt\tag\Int; [7] use pocketmine\network\protocol\AddEntityPacket; [8] use pocketmine\Player; [9] [10] class MorphZombieVillager extends Entity implements MorphEntity [11] { [12] [13] const NETWORK_ID = 44; [14] [15] public function getName() [16] {

Blubberboy333 commented 8 years ago

I fixed those php 7 errors and made a pull request. But now it says "Unhandled exception executing command 'morph Chicken' in morph: Class pocketmorph\morph\manager\Compound not found" That's not just with Chicken, that's with everything

HotshotHD commented 8 years ago

@Blubberboy333 In PocketMine php7, pocketmine\nbt\Compund must be changed to pocketmine\nbt\CompoundTag

Beyner127 commented 8 years ago

@HotshotHD look...

PocketMine Crash Dump Sun Apr 10 15:35:14 AKDT 2016

Error: Cannot use pocketmine\nbt\tag\Int as Int because 'Int' is a special class name File: /PocketMorph-master/src/pocketmorph/morph/MorphZombieVillager Line: 5 Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN : PocketMorph v1.0.0

Code: [1] <?php [2] [3] namespace pocketmorph\morph; [4] [5] use pocketmine\nbt\tag\Int; [6] use pocketmine\network\protocol\AddEntityPacket; [7] use pocketmine\Player; [8] [9] class MorphZombieVillager extends Morph implements MorphEntity [10] { [11] [12] const NETWORK_ID = 44; [13] [14] public function getName() [15] {

Backtrace:

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

Genisys version: 1.1dev #237 [Protocol 46; API 2.0.0] uname -a: Windows NT LATITUDED830-PC 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586 PHP version: 7.0.3 Zend version: 3.0.0 OS : WINNT, win

Loaded plugins: DevTools 1.10.0 by PocketMine Team for API(s) 1.3.1 PocketMorph 1.0.0 by HotshotHD for API(s) 1.13.0

HotshotHD commented 8 years ago

@BeynerGames127 Please read the README.md. You are using php7, if you want to use this plugin with php7 follow the instructions in the README.md