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

Need help

Comments in 'Plugin Development' started by PolskiTHEPLAYER, Feb 11, 2016.

Thread Status:
Not open for further replies.
  1. PolskiTHEPLAYER
    Offline

    PolskiTHEPLAYER New Member

    Joined:
    Apr 1, 2015
    Posts:
    55
    Minecraft User:
    Flsmers
    Genisys Crash Dump Thu Feb 11 16:15:13 CET 2016

    Error: Call to undefined method xfury\tl\Main::sendMessage()
    File: /TierLoot_v1.0.0/src/xfury/tl/Main
    Line: 33
    Type: E_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN
    此次出错由插件引起
    BAD PLUGIN : TierLoot v1.0.0

    Code:
    [24] public function onBreak(BBL $e){
    [25] if($e->getBlock()->getId() == 1 && mt_rand(0,$this->getConfig()->get("t1-chance")) == "1"){
    [26] $p = $e->getPlayer();
    [27] $p->getLevel()->addParticle(new Lava($e->getBlock(), 2));
    [28] $p->getLevel()->addParticle(new Lava($e->getBlock(), 2));
    [29] $p->getLevel()->addParticle(new Lava($e->getBlock(), 2));
    [30] $p->getLevel()->addParticle(new Lava($e->getBlock(), 2));
    [31] $p->getLevel()->addParticle(new Lava($e->getBlock(), 2));
    [32] $p->getLevel()->addSound(new Pop($p->getLocation()));
    [33] $this->sendMessage("Get Drop");
    [34] foreach($this->getConfig()->get("t1-loot") as $loot){
    [35] $p->getInventory()->addItem(Item::get($loot,0,mt_rand(0,$this->getConfig()->get("t1-item-max"))));
    [36] }
    [37] }
    [38] else{
    [39] }
    [40] if($e->getBlock()->getId() == 1 && mt_rand(0,$this->getConfig()->get("t2-chance")) == "1"){
    [41] $p = $e->getPlayer();
    [42] $p->getLevel()->addParticle(new Lava($e->getBlock(), 2));
    [43] $p->getLevel()->addParticle(new Lava($e->getBlock(), 2));

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

    Genisys version: 1.0dev #0 [Protocol 38; API 1.13.1]
    uname -a: Linux node60 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64
    PHP version: 5.6.9
    Zend version: 2.6.0
    OS : Linux, linux

    Loaded plugins:
    加载的插件:
    WorldFixer 1 by CreeperFace for API(s) 1.12.0
    Slapper 1.2.9.1 by jojoe77777 for API(s) 1.12.0
    PurePerms 1.2.2 by 64FF00 for API(s) 1.12.0
    DevTools 1.10.0 by PocketMine Team for API(s) 1.3.1
    SimpleAuth 1.6.0 by PocketMine Team, shoghicp for API(s) 1.8.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
    PeacefulSpawn 2.4 by LDX for API(s) 1.3.1, 1.4.0
    TierLoot 1.0.0 by XFuryMCPE for API(s) 1.12.0
    BattleKits 1.0.4 by Falkirks for API(s) 1.0.0
    PureChat 1.3.3 by 64FF00 for API(s) 1.11.0

    Plzz editi this code for me !
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    This forum is english only.
    PHP:
    $this->sendMessage("Get Drop");

    //Do this:

    $p->sendMessage("Get Drop");
  3. PolskiTHEPLAYER
    Offline

    PolskiTHEPLAYER New Member

    Joined:
    Apr 1, 2015
    Posts:
    55
    Minecraft User:
    Flsmers
    This speak english in this forum ;)
    eloszki013 likes this.
  4. PolskiTHEPLAYER
    Offline

    PolskiTHEPLAYER New Member

    Joined:
    Apr 1, 2015
    Posts:
    55
    Minecraft User:
    Flsmers
    Thanks bro :D
  5. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    It seems to me to show a lack of respect with your posts. I reported you about 3 times, why "Edit this for me?"? We are not your personal assistants, I repeat:
    We are here to help, not to fix your problems.
    KubixQ likes this.
  6. PolskiTHEPLAYER
    Offline

    PolskiTHEPLAYER New Member

    Joined:
    Apr 1, 2015
    Posts:
    55
    Minecraft User:
    Flsmers
    You don't write in my thread ok?
  7. TutoGamerWalid
    Offline

    TutoGamerWalid Active Member

    Joined:
    Jun 11, 2015
    Posts:
    69
    Minecraft User:
    TutoGamerWalid
    Lol Give me 20$ And I rule the problem xD :D
  8. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Too late.
Thread Status:
Not open for further replies.

Share This Page

Advertisement