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

SkyWars Plugin, help with single world support

Comments in 'Plugin Development' started by luca28pet, Apr 22, 2014.

  1. luca28pet
    Offline

    luca28pet Active Member

    Joined:
    Feb 20, 2014
    Posts:
    251
    Minecraft User:
    luca28pet
    Hi! I'm making a SkyWars plugin (it's my first elaborated plugin), it is nearly finished, but I have a problem right now:
    It's better if the plugin will work in a level (world) only, because a lot of server have a survival world and a minigame separate world, so I'm asking if someone could help me with single world support, because I don't want that Skywars messages are displayed in other worlds not for minigame, and I don't want that players in other worlds are teleported on skywars spawn every time a game finishes. In fact, I'd like that the plugin will consider only players that are in the skywars world.
    Maybe it's a little bit confusing, I'm not so good describing things. As me if you don't understand!
    Thanks, and sorry for bad English.
    luca28pet
    LDX likes this.
  2. Nautox
    Offline

    Nautox Banned

    Joined:
    Mar 29, 2014
    Posts:
    9
    Minecraft User:
    Nautox
    PHP:
    $players $this->api->player->getAll($this->api->level->get("skyworld")); //get the players from your target world!
    foreach($players as $p){
    $this->api->chat->sendTo(false,"[SKYBLOCK] The Tournament starts in 3 Minutes"$p->username); //sends the message to the world!
    }
  3. luca28pet
    Offline

    luca28pet Active Member

    Joined:
    Feb 20, 2014
    Posts:
    251
    Minecraft User:
    luca28pet
    Thank you! Helped a lot ;)
    I will apply that also with teleporting and spawn thing if I can.
  4. MrXxDarkKilerxX
    Offline

    MrXxDarkKilerxX New Member

    Joined:
    Aug 24, 2013
    Posts:
    7
    Minecraft User:
    MrXxDarkKilerxX
    so when will this be released :D
  5. Anton Magsino
    Offline

    Anton Magsino Active Member

    Joined:
    Jan 17, 2014
    Posts:
    59
    Minecraft User:
    MinecrafterPH
    He might not release it because he took so many time in developing it, and he just want it to be unique and for his server.
  6. MrXxDarkKilerxX
    Offline

    MrXxDarkKilerxX New Member

    Joined:
    Aug 24, 2013
    Posts:
    7
    Minecraft User:
    MrXxDarkKilerxX
  7. BukkitPE
    Offline

    BukkitPE Banned

    Joined:
    May 11, 2014
    Posts:
    16
    Minecraft User:
    MINEMASTER_28
    Upload the code to GitHub and send me a link i can finish it !

Share This Page

Advertisement