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

HELP MY PLUGIN CRASH THE SERVER!!

Comments in 'Plugin Development' started by TrilogiForce, Nov 9, 2013.

?

What plugin should i do first?

  1. Super JUMP

    3 vote(s)
    60.0%
  2. WalkBLOCK

    2 vote(s)
    40.0%
  3. World teleportation (it tp you to other world

    3 vote(s)
    60.0%
Multiple votes are allowed.
  1. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    so i was making a plugin called ASK Herobrine
    that tells about him and me so i have add a lot of stuff but it crash the server and doesnt give an error dump
    or what ever its called its just close the server here the code if you can see any errors:
    PHP:
    <?php
    /*
    __PocketMine Plugin__
    name=ask Herobrine
    description=ASk herobrine everything about TrilogiForce!
    version=1.0
    author=TrilogiForce
    class=A
    apiversion=9, 10
    */

    class implements Plugin{
    private 
    $api;
    public function 
    __construct(ServerAPI $api$server false){
    $this->api $api;
    }

    public function 
    init(){
    $this->api->console->register("askhb""Ask Herobrine, use /askhb help to get all commands of this plugin", array($this"command"));
    console("§a[ASK Herobrine]Please check if there is any update");
    console("§e[ASK Herobrine]Plugin maded by TrilogiForce!!!");
    }

    public function 
    __destruct() {
    }
    public function 
    command($cmd$args$issuer$alias){
    $output ="";
    switch (
    $cmd) {
    case 
    'askhb'$name =array_shift($args);
    $type =array_shift($args);
    if (empty(
    $name)) {
    $this->getUsage($output);
    break;
    }
    }
    }
    public function 
    command($cmd$params$issuer$alias$args$issuer$world$level){
    $subcmd strtolower(array_shift($params));
    switch(
    $subcmd){
    case 
    "Who.are.you?":
    case 
    "Who.are.you":
    case 
    "who.are.you?":
    case 
    "who.are.you":
    $user strtolower($args[0]);
    $issuer->sendChat("i am a miner who");
    $issuer->sendChat("DID NOT got added in any minecraft");
    $issuer->sendChat("i am just a legend from the");
    $issuer->sendChat("community and notch 'deleted'");
    $issuer->sendChat("me in");
    $issuer->sendChat("1.6.6 BETA");
    $issuer->sendChat("and totally deleted in");
    $issuer->sendChat("1.7.2 the update that change the world");
    break;
    case 
    "hi":
    case 
    "hi!":
    $output .= 'Whats up!';
    return 
    $output;
    break;
    case 
    "kill.everyone":
    case 
    "kill.everyone!":
    case 
    "kill.everybody":
    case 
    "kill.everybody!":
    case 
    "kill.us":
    case 
    "kill.us!":
    case 
    "kill.us all":
    case 
    "kill.us all!":
    case 
    "kill.us all hb":
    case 
    "kill.us all hb!":
    $user strtolower($args[0]);
    $output .= 'I always wished to do that!';
    return 
    $output;
    $this -> api -> console -> run("kill @a");
    break;
    case 
    "kill.me":
    $output .= 'you sure?';
    return 
    $output;
    break;
    case 
    "cake?":
    case 
    "want.cake":
    case 
    "want.cake?":
    case 
    "want.some.cake":
    case 
    "want.some.cake?":
    $output .= '<Herobrine>Me? no thanks.';
    return 
    $output;
    break;
    case 
    "do.you.like":
    $output .= 'maybe.';
    return 
    $output;
    break;
    case 
    "you.are.very":
    case 
    "you.are":
    $user strtolower($args[0]);
    $output .= '<Herobrine> Really?';
    return 
    $output;
    break;
    case 
    "bye":
    case 
    "bye.bye":
    case 
    "see.you.later":
    case 
    "see.ya.later":
    case 
    "bye!":
    case 
    "bye.bye!":
    case 
    "see.you.later!":
    case 
    "see.ya.later!":
    $output .= '<Herobrine>see ya!';
    return 
    $output;
    break;
    case 
    "yes":
    case 
    "YES":
    case 
    "YES!":
    case 
    "YES!!":
    case 
    "YES!!!":
    case 
    "YES!!!!":
    case 
    "yes!":
    $output .= 'Really? ok';
    return 
    $output;
    $user strtolower($args[0]);
    $this -> api -> console -> run("kill ".$issuer);
    break;
    case 
    "no":
    $output .= 'ok D;';
    return 
    $output;
    break;
    case 
    "lol":
    case 
    "LOL":
    case 
    "Lol":
    case 
    "LOl":
    case 
    "lOL":
    case 
    "LoL":
    $output .= 'lololololololololol!!';
    return 
    $output;
    break;
    case 
    "Would.you.love.me?":
    case 
    "would.you.love.me?":
    case 
    "Would.you.love.me":
    case 
    "would.you.love.me":
    $output .= 'I am herobrine stupid!!';
    return 
    $output;
    break;
    case 
    "would.you.like":
    $output .= 'maybe,';
    return 
    $output;
    break;
    case 
    "Whats.the.next.plugin.that.TrilogiForce.would.do?":
    case 
    "Whats.the.next.plugin.that.TrilogiForce.would.do":
    case 
    "What.is.the.next.plugin.that.trilogitorce.would.do?":
    case 
    "What.is.the.next.plugin.that.trilogiforce.would.do":
    $output .= 'WalkBlock,superJUMP,\n';
    $output .= 'and trying to control your server\n';
    $output .= 'via android that its running in your computer';
    return 
    $output;
    break;
    case 
    "In.what.world.I.am?":
    case 
    "In.what.world.I'm?":
    case 
    "In.what.world.I.am":
    case 
    "in.what.world.i.am?":
    $this->$issuer->level($world);
    $output .= '$world';
    return 
    $output;
    break;
    case 
    "What's.the.real.name.of.TrilogiForce?":
    case 
    "What's.the.real.name.of.TrilogiForce":
    case 
    "Whats.the.real.name.of.TrilogiForce?":
    case 
    "Whats.the.real.name.of.TrilogiForce":
    case 
    "What.is.the.real.name.of.TrilogiForce?":
    case 
    "What.is.the.real.name.of.TrilogiForce":
    case 
    "what's.the.real.name.of.TrilogiForce?":
    case 
    "what's.the.real.name.of.trilogiforce":
    case 
    "what's.the.real.name.of.TrilogiForce":
    $output .= 'Byron Garza\n';
    $output .= 'and the full name\n';
    $output .= 'Byron Isai Garza Marroquin\n';
    return 
    $output;
    break;
    }
    }
    private function 
    getUsage(&$output) {
    if(!(
    $issuer instanceof Console)){
    $output .= "Usage: /askhb <question|command>";
    if(!(
    $issuer instanceof Player)){
    $output .= "Usage: askhb <question|command>\n";
    return 
    $output;
    }
    }
    break;
    }

    }
    ?>
  2. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Are you sure it doesn't give any error at all? Also this looks a lot like the Siri plugin by legomite, if you are so awesome why can't you make something unique?
    Andrey Nazarchuk likes this.
  3. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    i told him if i can use its IDEA no code cuz i make all the code of this plugin and i am going to translate siri so he let me to use kind of its code
  4. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Okay, but still I don't see why you have to if you have all these other awesome plugins on the go
  5. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    i want to make more and have my "plugin developer" rank
    and be in the "most active authors" list
  6. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    SOMEONE HELP ME!!
  7. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    1. That is the siri plugin

    2. If you want in the most active author list, make your own plugins, not other people's
  8. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    WHY YOU DONT UNDERSTAND!!!
    I make this plugin to people know more about ME!!!!
  9. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    and using herobrine like the man who answer the questions
  10. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    Frankly, I have seen absolutely no proof from you that you are an actual plugin dev, much less someone deserving of the tag. I must admit though, you are truly the master of cut and paste. I recommend starting afresh, write your own code and grow from there. If I see you are truly trying to write your own stuff, then I believe me and the other devs will be more than willing to help you out.

    In summary: Keep your head down, get some humility, do the dirty work, earn the reward. That is how you become a plugin dev.

    If you are mad at me for saying this, I don't care. I have needed to get this off my chest.
    wies likes this.
  11. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    like 2 weeks ago a start by 0% that plugin cuz i crashed and i did not works thats why i REmake the plugin and i don care if it looks like i steal some code but i didnt steal code!!!!!!!!!!!!!!!
  12. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Let's just calm ourselves down, glitchmaster is right you do know your copy and paste. However this doesn't mean we can't help you with your plugin, as long as you are learning something from it. At this point you have just cut and pasted and asked us to fix it, could you please try to do some more of your own work and then we can talk.
    Glitchmaster_PE likes this.
  13. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    i code everything just that i SAW the siri plugin code and then i use some of it then i did everything but whatever just i wanted help but no one wants to help so yeah
  14. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    guys i asked for help maybe i am going to put my plugins in .pmf
  15. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    I think it in the last part the /output /blaba
  16. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    oh man please help!!
    or i will................
  17. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    Wait I'm trying to fix it ok
  18. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    Trip this only
    Private function getUsage(&$output) {
    $output .= "Usage: /hm <target><type>
    ";
  19. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
  20. Chris35000vr
    Offline

    Chris35000vr Banned

    Joined:
    Sep 22, 2013
    Posts:
    15
    Minecraft User:
    Chris35000vr

Share This Page

Advertisement