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

Plugins nodropsore

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

  1. PolskiTHEPLAYER
    Offline

    PolskiTHEPLAYER New Member

    Joined:
    Apr 1, 2015
    Posts:
    55
    Minecraft User:
    Flsmers
    I search plugin add nodropsore
    Plzz give me this plugin
  2. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
  3. PolskiTHEPLAYER
    Offline

    PolskiTHEPLAYER New Member

    Joined:
    Apr 1, 2015
    Posts:
    55
    Minecraft User:
    Flsmers
    Plzz give me code to delete drop ore
  4. PolskiTHEPLAYER
    Offline

    PolskiTHEPLAYER New Member

    Joined:
    Apr 1, 2015
    Posts:
    55
    Minecraft User:
    Flsmers
    What editi this code to drop in ore

    if($e->getBlock()->getId() == 1 && mt_rand(0,$this->getConfig()->get("t1-chance")) == "1"){
  5. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    PHP:
    public function ONBreakEvent(BlockBreakEvent $ev){
    if(
    $ev->getBlock()->getID() == 14 || $ev->getBlock()->getID() == 15 ||
    $ev->getBlock()->getID() == 16 || $ev->getBlock()->getID() == 21 ||
    $ev->getBlock()->getID() == 56 || $ev->getBlock()->getID() == 129 ||
    $ev->getBlock()->getID() == 73 || $ev->getBlock()->getID() == 153 ){
    $ev->setDrops(array(Item::get(0)));
    }
    }
    Omar2s2 likes this.
  6. PolskiTHEPLAYER
    Offline

    PolskiTHEPLAYER New Member

    Joined:
    Apr 1, 2015
    Posts:
    55
    Minecraft User:
    Flsmers
    Genisys Crash Dump Sat Feb 13 19:12:25 CET 2016

    Error: syntax error, unexpected '}'
    File: /TierLoot_v1.0.0/src/flsmers/fl/Main
    Line: 123
    Type: E_PARSE

    THIS CRASH WAS CAUSED BY A PLUGIN
    此次出错由插件引起

    Code:
    [114] }
    [115]
    [116] if($ev->getBlock()->getID() == 14 || $ev->getBlock()->getID() == 15 ||
    [117]
    [118] $ev->getBlock()->getID() == 16 || $ev->getBlock()->getID() == 21 ||
    [119] $ev->getBlock()->getID() == 56 || $ev->getBlock()->getID() == 129 ||
    [120] $ev->getBlock()->getID() == 73 || $ev->getBlock()->getID() == 153 ){
    [121] $ev->setDrops(array(Item::get(0)))
    [122]
    [123] }
    [124] else{
    [125] }
    [126]
    [127]
    [128]
    [129]
    [130]
    [131]
    [132]
    [133]

    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:
    加载的插件:
    PurePerms 1.2.2 by 64FF00 for API(s) 1.12.0
    NetherChests 1.1.1 by aliuly for API(s) 1.12.0
    DevTools 1.10.0 by PocketMine Team for API(s) 1.3.1
    Spiral 1.0.0 by GmWM for API(s) 1.12.0
    SimpleAuth 1.6.0 by PocketMine Team, shoghicp for API(s) 1.8.0
    essentialsTP 1.1.0 by for API(s) 1.12.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
    Lightning_Strike 2 by MichaelM04 for API(s) 1.0.0
  7. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    1. That is Off-topic.
    2. What is TierLoot doing here? Report the crash to author.
    3. You are using Genisys.
    4. Wrong section, should be 'Plugin Requests'.
    5. Not everyone knows what is NoDropsOre, Please describe the plugin.
    6. Where is that and what do you mean?
    7. What do you mean?
    KubixQ likes this.
  8. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    You Have problem with }
    Omar2s2 likes this.
  9. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  10. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    You know what? People like you shouldnt get help here anymore, I just saw you, wanting get payed with 20$ on Plugin Requests for creating a SurvivalGames plugin which is about 100 times on GitHub, while you cant even really code, you dont know much PHP or even the PocketMine API, hope you get banned until ypu realize that you are on the PocketMine Forums, a forum for developers not to people like you overrate themselves, dont even know how to analyze code by their eyes and simply find a missing ; in a little piece of a code, wanting 20$ I mean 20$ for one plugin. Damn hope you get banned!
    Omar2s2, KubixQ, PocketKiller and 3 others like this.

Share This Page

Advertisement