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

MCPEMMO Help

Comments in 'Plugin Development' started by PragaKart67z, Nov 27, 2015.

  1. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    Hi I currently have an mcmmo plugin. However, i keep getting a crash. If you could help that would be wonderful :p

    PocketMine-MP Crash Dump Fri Nov 27 01:26:27 CET 2015

    Error: Call to undefined method _64FF00\PurePerms\PurePerms::getUser()
    File: /MCPEMMO_v1.0-1.phar/src/MCPEMMO/Main
    Line: 42
    Type: E_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: MCPEMMO v1.0

    Code:
    [33] public function onJoin(PlayerJoinEvent $ev){
    [34] $ign=$ev->getPlayer()->getName();
    [35] $p=$ev->getPlayer();
    [36] $player=$p;
    [37] $this->PlayerFile = new Config($this->getDataFolder()."Players/".$ign."_Stats.yml", Config::YAML);
    [38]
    [39] if($this->PlayerFile->get("Deaths") === 0 && $this->PlayerFile->get("Kills") === 0){
    [40] //nothin
    [41] }else{
    [42] $group = $this->getServer()->getPluginManager()->getPlugin("PurePerms")->getUser($player)->getGroup();
    [43] $groupname = $group->getName();
    [44] if($this->getServer()->getPluginManager()->getPlugin("PurePerms") === null){
    [45] $p->setNameTag($p->getName()."\n§l§9§oPower Level:§l§f".$this->PlayerFile->get("Power_Level")."§f\n§9Health:§c".$p->getHealth()."§8/§c".$p->getMaxHealth());
    [46] }else{
    [47] $p->setNameTag("§7[".$groupname."§7]§f".$p->getName()."\n§l§9§oPower Level:§l§f".$this->PlayerFile->get("Power_Level")."§f\n§9Health:§c".$p->getHealth()."§8/§c".$p->getMaxHealth());
    [48]
    [49] }
    [50] }
    [51] $this->addPlayer($p);
    [52] $player->setHealth(20);

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

    PocketMine-MP version: 1.7dev #0 [Protocol 38; API 1.13.0]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Linux f635 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:17:06 UTC 2015 x86_64
    PHP Version: 5.6.10
    Zend version: 2.6.0
    OS : Linux, linux

    Loaded plugins:
    GoldenApple 1 by SavionLegendZzz for API(s) 1.12.0
    ASR 2.0.2 by iJoshuaHD for API(s) 1.12.0
    Broadcaster 1.16 by EvolSoft for API(s) 1.12.0
    MCPEMMO 1.0 by for API(s) 1.12.0
    PurePerms 1.2.2 by 64FF00 for API(s) 1.12.0
    WorldEditArt 1.0.0_beta_dev_#048 by PEMapModder for API(s) 1.0.0
    CombatLogger 1.2.0 by Lambo for API(s) 1.12.0
    FactionsPro 1.3.2 by Tethered_ for API(s) 1.12.0
    DevTools 1.10.0 by PocketMine Team for API(s) 1.3.1
    CustomAlerts 1.6 by EvolSoft for API(s) 1.12.0
    essentialsTP 1.1.0 by for API(s) 1.12.0
    CrateKeys 0.3 by for API(s) 1.11.0
    WorldBorder 1.1.0 by Topic for API(s) 1.11.0
    ManyWorlds 2.0.3 by aliuly for API(s) 1.10.0
    TAGBlock 0.7-Alpha by ifteam for API(s) 1.13.0, 2.0.0
    xyz 1.0.1 by unerds for API(s) 1.0.0
    AdvancedKits 4.0.1 by luca28pet 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===
    eNrdO2tv20a2f2UgB7v2hai3ZEWFCriO3XZrJ9rYQbBbFsaQHEpckxyWM5SsFPnv95wzw5ccN496
    P9wbtI14Zua8n0P2j46OEtFZDCeT+XQ+fjk/7XZEnsu8s/ijo/cZLHUu7i7evn3zttPtJEIpvkbY
    OY9jpiUr0kCEUSoClgi9kQG7m00uLwcD110VuViJPFGNn4vFWuh3SuTHJ4AtjGJE1b8+X11cX7+5
    2w57A2fYyzY876vcL+H9ax6lsD0GMp3FZPSx28niYg2wRcdugVVfBgJ5Ho8B7GpXZ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4ggKXmm1iweO9b98xKYKaFmGFiVndhGCBu8MFuxX/OlAqevS
    JcJvJW6Tees2qXmDTYKV85AZVcs7f5pBP3UlTgM+VVRF3QyqIoEmJwKWbePREsNSJjbsb4YvCjAl
    2NJYU12wy6uz28Xou9Pu9OXDsDt+GHdH3w2/C6BDMNnxGD9G8jGHLecDtoa4UOZpMj2xrw/EgxYp
    qoheNp5DNWx+RYq+1nyGgrTuLCjgup3Mx832Qf0eR1qM7Stj81XtB/Ptq/mGyfOh89pU+/EqOg14
    XgPM/6RRPhV5XD2EUUyfOQLqoflCINRZtboO6p9JDd5AEqi+E/yPqr6nwnelpPnAfJc77E0tu4ln
    rs8rFNDe7jNdi6g5chw0FXKzuiIs+F1T5kNPWh/eg0roG1z7i03xTe0QiTEH38mNBtPBGH6++Bkv
    E/zZfO7NPM8fD4LxjIdj7o8nYRBMvFNv6p3OT0MxhT/sBVBabVBx1XesmVTRQ20We51hNwxR4Lci
    tBM3QImeCMO5F/izqTfwBA/n4YQHYhYOZuF8MhezYDIOwmA+mhE9tUlkrVlFYanakkZGmbBZy3uR
    QrXLK8h7we8hqxhF0UdEe06vqvCDD9zwIcrM06g37Xz8+L8pnpte
    ===END CRASH DUMP===
  2. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Please use code blocks for crash dumps... You can do this by surrounding the text with tags: [PHP][/PHP]. And read the error: Call to undefined method _64FF00\PurePerms\PurePerms::getUser()
    PragaKart67z likes this.
  3. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    How can i fix this?
  4. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    PragaKart67z likes this.
  5. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    Do you think you could help me fix the plugin?
  6. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    Would it be usrinfo?
  7. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Maybe, I'm busy with something right now. But I believe you should change line 42 from $group = $this->getServer()->getPluginManager()->getPlugin("PurePerms")->getUser($player)->getGroup(); to $group = $this->getServer()->getPluginManager()->getPlugin("PurePerms")->getGroup($player)->getName();. And leave likes if this helped... :)
    Didn't I say to look through the source? o_O
    PragaKart67z likes this.
  8. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    Look in the PurePerms or MCmmo source?
  9. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    PragaKart67z likes this.
  10. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    I do not know what to look for nor what to change line 42 too
  11. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    DO YOU EVEN READ MY POSTS THOROUGHLY???
    PragaKart67z likes this.
  12. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    CHANGE LINE 42 FROM $group =... TO WHAT IT DOESNT SAY
  13. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    LEARN HOW TO READ PHP IT'S CRYSTAL CLEAR.
    What is wrong with you... Go wash out your eyes or something...
    PragaKart67z likes this.
  14. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    Well if you would have put that the first time
  15. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    Another problem:

    directory
    [03:38:19] [CRITICAL]: Could not save Config /home/Enderman/plugins/MCPEMMO/Players/PragaKart67z_Stats.yml: file_put_contents(/home/Enderman/plugins/MCPEMMO/Players/PragaKart67z_Stats.yml): failed to open stream: No such file or directory
  16. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    Its not crashing. Its just spamming the crap out of console
  17. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    pocketmine\event\player\PlayerPreLoginEvent;
    use pocketmine\event\player\PlayerJoinEvent;

    class Main extends PluginBase implements Listener {
    public $players = array();
    public function onEnable() {
    @mkdir($this->getDataFolder() . "MCPEMMO/Players/");
    //$this->config = $this->getConfig();
    $this->getServer()->getPluginManager()->registerEvents($this,$this);
    $this->getServer()->getLogger()->info("[MCPEMMO]Enabled");
    $this->getServer()->getScheduler()->scheduleRepeatingTask(new CallbackTask([$this,"popup"]),10);
    //$this->getServer()->getScheduler()->scheduleRepeatingTask(new CallbackTask([$this,"streaks"]),10);
    }

    That code is already in there.
  18. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
  19. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Because, you don't understand how to ask for help. If you get errors and you know that it is caused by your plugin, at least post the full code. You just tell us the error and don't even post your code. We're not mind readers. Until you learn how to ask for help correctly, bye.
    Last edited: Nov 27, 2015
    PragaKart67z likes this.
  20. PragaKart67z
    Offline

    PragaKart67z New Member

    Joined:
    Aug 16, 2015
    Posts:
    41
    Minecraft User:
    PragaKart67
    Its because i am new to pocketmine and dont know the requirements for reporting an error

Share This Page

Advertisement