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. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    where do you get the error?
    Syriamanal likes this.
  2. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    I did not get an error i am afraid it won`t work!
  3. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    did you check it?
  4. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    The computer i am using does not have pocketmine:-(
  5. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    so install it!
  6. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    Sadly not enough storage
  7. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    too bad do you have windows 7 or what OS you have?
  8. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    Windows XP or Windows Vista i forgot
  9. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    ok go to start>run in run put %temp% then close everything except Run then click enter and delete everything in there and delte it at 100%
  10. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    Will this damage my PC?
  11. TrilogiForce
    Offline

    TrilogiForce Ban Evader Banned

    Joined:
    Sep 7, 2013
    Posts:
    228
    Minecraft User:
    TrilogiForce
    no it would delete all the stuff that the installers java adobe and the browsers download and doesnt delete
  12. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    390
    Needs to be:
    PHP:
    <?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"));
        }

        public function 
    tp($cmd$args$issuer){
            
    $x $issuer->entity->x;
            
    $y $issuer->entity->y;
            
    $z $issuer->entity->z;
            
    $level $issuer->level;
            foreach(
    $this->api->player->getAll() as $player){
                
    $player->teleport(new Position($x$y$z$level));
            }
            return 
    "You have succesfully teleported everyone!";
        }

        public function 
    __destruct(){}
    }
    ?>
    But why would you need this plugin if you can use this command: /tp @all <yourname>
  13. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    Thanks but this is easier!
  14. Puzzleo
    Offline

    Puzzleo Banned

    Joined:
    Sep 7, 2013
    Posts:
    88
    Minecraft User:
    puzzleo
    :( i made tpall he coppied me
  15. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    Me?
  16. ZacHack
    Offline

    ZacHack Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    325
    Plugins:
    6
    Minecraft User:
    _ZacHack_
    Why not just do /tp @all?
  17. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    That's a very good question, apparently this is easier :)
  18. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    What /tpall or /tp @all?
  19. Dragonbone
    Offline

    Dragonbone New Member

    Joined:
    Nov 13, 2013
    Posts:
    50
    No, i started making it two days ago!
  20. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    lier he made it first dragon made it first

Share This Page

Advertisement