Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help me fix this crash!

Comments in 'Plugin Development' started by PalkiaDudeYT, Nov 12, 2015.

  1. PalkiaDudeYT
    Offline

    PalkiaDudeYT New Member

    Joined:
    Aug 30, 2015
    Posts:
    33
    Minecraft User:
    PalkiaDude
    Code:
     
    PocketMine-MP Crash Dump Thu Nov 12 09:45:48 UTC 2015
    
    Error: Call to a member function getPlayers() on null
    File: /phar_DontStopRunning-master_qsOo6AvlUqgST__.phar/src/PalkiaDude/DontStopRunning/Main
    Line: 113
    Type: E_ERROR
    
    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: DeadEnd v1
    
    Code:
    [104]  $player->$pos->setBlock = $ev->getPlayer()->getLevel()->getBlock($ev->getPlayer()->floor()->subtract(0, 1));
    [105] }
    [106]   if($block->getId() === Block::GOLD_BLOCK){
    [107]   $event->$player->$pos->setBlock(new Vector3($x, $y, $z), Block::get(0)) ;
    [108]      }
    [109] }
    [110] 
    [111]    public function onArenaJoin(PlayerJoinEvent $event){
    [112]     $arena = $this->getServer()->getLevelByName("DeadEndArena");
    [113]     $players = count($this->getServer()->getLevelByName("DeadEndArena")->getPlayers());    
    [114]     $event->$players->addPlayer();
    [115] }
    [116]    public function getWinner(PlayerDeathEvent $event){
    [117]    $targetlevel = $event->getTarget();
    [118]     $players = count($this->getServer()->getLevelByName("DeadEndArena")->getPlayers());
    [119]    if($targetlevel->$players > 10){
    [120]     $event->$players->broadcastMessage("10 runners are alive and running!");
    [121]    }
    [122]    if($targetlevel->$players > 1){
    [123]     $event->$players->broadcastMessage("We have a winner!");
    
    Backtrace:
    #0 (): pocketmine\Server->crashDump(boolean)
    
    PocketMine-MP version: 1.6dev #48 [Protocol 34; API 1.13.0]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Linux localhost 3.4.0-3215177 #1 SMP PREEMPT Thu Nov 6 17:48:34 KST 2014 armv7l
    PHP Version: 5.6.2
    Zend version: 2.6.0
    OS : Linux, android
    
    Loaded plugins:
    SimpleAuth 1.7.1 by PocketMine Team, shoghicp for API(s) 1.12.0
    SimpleAuthHelper 2.0.4 by aliuly for API(s) 1.12.0
    Slapper 1.2.5 by jojoe77777 for API(s) 1.12.0
    ManyWorlds 2.0.3 by aliuly for API(s) 1.10.0
    EconomyAPI 2.0.9 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
    EconomyAuction 2.0.2 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
    EconomyCasino 2.0.2 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
    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
    EconomyLand 2.0.9 by onebone for API(s) 1.12.0
    EconomyProperty 2.0.6 by onebone for API(s) 1.12.0
    EconomyPShop 2.0.2 by onebone for API(s) 1.12.0
    EconomySell 2.0.7 by onebone for API(s) 1.12.0
    EconomyShop 2.0.7 by onebone for API(s) 1.12.0
    EconomyTax 2.0.3 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
    EconomyUsury 1.0.1 by onebone for API(s) 1.12.0
    TapToDo 2.2.1 by Falk for API(s) 1.0.0
    WorldEditArt 1.0.0_beta_dev_#048 by PEMapModder for API(s) 1.0.0
    PeacefulSpawn 2.4 by LDX for API(s) 1.3.1, 1.4.0
    ServerKits 1.3 by EvolSoft for API(s) 1.11.0
    MSpawns 1.5 by EvolSoft for API(s) 1.11.0
    PerWorldChat 1.2 by EvolSoft for API(s) 1.10.0
    PurePerms 1.2.2 by 64FF00 for API(s) 1.12.0
    DeadEnd 1 by Palkiadude for API(s) 1.13.0
    EconomyAirport 2.0.4 by onebone for API(s) 1.12.0
    BattleKits 1.0.4 by Falkirks for API(s) 1.0.0
    SimpleWarp 2.1.0 by Falkirks for API(s) 1.12.0
    PureChat 1.3.3 by 64FF00 for API(s) 1.11.0
    
    ----------------------REPORT THE DATA BELOW THIS LINE-----------------------
    
    ===BEGIN CRASH DUMP===
    eNrVWwtz2ziS/itYJVVrX4kSqYdlK+VUeWxnNzt2rI2cy9WNtlwQCUqMSYIhQMvKVP77dTfAh2Rl
    YjszN7upyYTEo/H1uwFQv7Z0lIjW2BsMRv2eNxwctlsiz2XeGv/a0usMulrnN+fv31+9b7VbiVCK
    L7DtlMcx05JxlohkLnIWFqmvI5myhdCTmK9Frvb2GbynRRzD1DCKcV43W/L85kymeqpl9r5I0yhd
    OAlXWuQ3n9WVPDi5iz98Xkyvb246OLarcr874fFtxM+KQHS3pnYveZQC+ThKkQuv/7XdyuJiAY3j
    1pngwXkaQLcvA4Ecee4A2tnLjBA6r19mUjmvldA/xdK/ZcfspbhzXlcs7O3Ty4W4E7F9poF7D4eF
    sZT0oIq5zrmv99w28/b3X8HqnjuEVb/S0wGuz6Jw7+UcKRGVtwGI6vj4mBHx8fhvVxdnNz9dXJ3+
    vP8rTRrRJFhUpBpB70S/l4oV+2/ha5n3917et9nLNfz9st8uycJKe+7+PjOQDokm/DG4jkqEngtP
    9OCZEVkxjyO/VrBMT3KR8n/IKN0z/OPjOWKzEA1qr2dXeMlxPApXLyNFHE9Ffrcp3p/W73gi9mal
    0miNWcvIz+uXpAzrCoj5skj13nNINjQHNrr/CgnTKoNylU1BA30eBKWqDaBKod7BbinBEh+jNIUZ
    ZiJg0MsdQjKqBdHwHKbEiNuYISGApmvqKNc9/CMFQSscmRXQQhuYamGw18xzDfie+02BzXPJAx/c
    +tKEDFjcc1leoEQUA4NgPI7u4P9pQK3gyn8ptd2zhkfy7fUegcfC6T8FzkfBlhwRsBXpySwP4QO9
    F4LFL60XLtvbH7MMnEfoBALMbGZk67z2c66WZ0WS7c2ljAVP91v/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ELqlPIU81PhVDppQ4xXSwaI1JpdptzIfh9oX9TmOtOibHw45
    5kdKX8wvicx3aXMf6pplNR4PTtOA53WD+YFo+VbkcfUSRrHG32sAac9cIIY6q3oXSf28BO81l6kw
    6JOqvgXAL2eSuTnLrQZDTbjOdM2B5ggoaLA7nVzQqvic+VDL1XPXwDD9YMk+sSF+meYh58zBO6ue
    O3T78PjyLegt7I/6gg+DYDjsH44OvIF7wA/dXo8P5oe8PxoMvMN5b+AK9hLvaJcoluor1Uyq6L4W
    ut2s2wEeMvpehHanCa203qEYhj6HSnUAy7rhaOSPDg8PhkNYun/U64u+Oz8aHQUBraeWiaxFqMix
    1CankRE+DNbyVqSQZ/Kq5aPgtxARjKDoM5k1p0sS/DIRB3yJMvPW6wxaX7/+H8GeNOE=
    ===END CRASH DUMP===
    
    Help me fix!
  2. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Level does not exist or is not loaded. BTW WTH is
    $player->$pos->setBlock ???
  3. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    Try adding this:
    PHP:
    $this->getServer()->loadLevel("DeadEndArena");
    EDIT: And make sure your level name in level.dat is DeadEndArena :) Not folder name :)
  4. PalkiaDudeYT
    Offline

    PalkiaDudeYT New Member

    Joined:
    Aug 30, 2015
    Posts:
    33
    Minecraft User:
    PalkiaDude
    At onEnable?
  5. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Wether that or just before you try to count your players.
  6. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Would it even make sense to load a level and then check the count of the players?._.
    thebigsmileXD likes this.
  7. PalkiaDudeYT
    Offline

    PalkiaDudeYT New Member

    Joined:
    Aug 30, 2015
    Posts:
    33
    Minecraft User:
    PalkiaDude
    Sure... check players in a world that is not loaded.

Share This Page

Advertisement