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

PLUGIN DEV TEAM!!!

Comments in 'Plugin Development' started by Syriamanal, Nov 13, 2013.

  1. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    I am making a team any dev can join the team even if you made a simple plugin!!!
    To Register just comment "Can I join"






    Thank you
    Syriamanal
  2. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    Can I join, I am a newbie. Can you teach me some PHP? I understand the basics but...
  3. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
  4. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    Syriamanal likes this.
  5. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
  6. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    i wish to join you guys but i already have a dev team so so sadly i cant join you guys!
  7. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    Oh, then i will join you instead, Sorry Syriamanal. Trilogi for teleporting can i do :

    $x = round($issuer->entity->x);
    $y = $issuer->entity->y;
    $z = round($issuer->entity->z);
    $level = $issuer->level->getName();
    $data["$name"] = array($x,$y,$z,$level);
    $player->teleport(new Position($x, $y, $z, $level));

  8. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    ur in one realy whos is it
  9. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    i know and i can help too and syriamanal do you want them to join our dev team?
  10. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    Dude, i am making a plugin, it needs to teleport, can i do this?


    public function tp($cmd, $args, $issuer, $player){
    $name = $params[0];
    $x = round($issuer->entity->x);
    $y = $issuer->entity->y;
    $z = round($issuer->entity->z);
    $level = $issuer->level->getName();
    $data["$name"] = array($x,$y,$z,$level);
    $player->teleport(new Position($x, $y, $z, $level));
    $username = $issuer->username;
    $this->api->chat->sendTo(false, "You have succesfully teleported everyone!", $username);
    }
  11. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    who are these people and yes I cant them to join pleas
  12. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    yes
  13. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    Thanks, can i join the dev team?
  14. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    yeah if syriamanal says yes!
  15. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    submit the plugin then yes ok
  16. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    I did it says: This plugin is currently awaiting approval.
  17. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    ok can I see the code and yes u have joind the team
  18. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    ok just wait until tomorrow and it would be public!
  19. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    COOL!
  20. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    I have a problem, i do not think this will tp all the players, please help!

    <?php

    /*
    __PocketMine Plugin__
    name=tpall
    description=Adds a new command that tp's everyone to your position
    version=1.0.0
    author=Dragonbone
    class=tpall
    apiversion=10
    */

    class tpall implements Plugin{
    private $api;

    public function __construct(ServerAPI $api, $server = false){
    $this->api = $api;
    }

    public function init(){
    $this->api->console->register("tpall","Tp's all the online players to your position", array($this, "tp"));
    $this->api->ban->cmdwhitelist("chatsend");
    }

    public function tp($cmd, $args, $issuer, $player){
    $name = $params[0];
    $x = round($issuer->entity->x);
    $y = $issuer->entity->y;
    $z = round($issuer->entity->z);
    $level = $issuer->level->getName();
    $data["$name"] = array($x,$y,$z,$level);
    $player->teleport(new Position($x, $y, $z, $level));
    $username = $issuer->username;
    $this->api->chat->sendTo(false, "You have succesfully teleported everyone!", $username);
    }

    public function __destruct(){
    }
    }
    ?>

Share This Page

Advertisement