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

Command Multi World System

Comments in 'Plugin Development' started by ZenCloud, Jul 18, 2014.

  1. ZenCloud
    Offline

    ZenCloud Active Member

    Joined:
    May 14, 2014
    Posts:
    61
    Minecraft User:
    ZenCloud
    Alright doods! Another thread. Because of the Holograms cant be done for now. Lets talk about this. Can we make like a plugin that can make one specific command for one world. Like if we play on the main spawn, there are only like /help /spawn like thatand if we maybe play a game like kitpvp, it will have like /help /spawn /kit . Its like a system that can make commands only work for a specific world. Is it possible?
  2. Sergey_D
    Offline

    Sergey_D Active Member

    Joined:
    Jan 19, 2014
    Posts:
    75
    Minecraft User:
    CLILLZ
    yes, and very simple
  3. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    431
    Plugins:
    4
    Minecraft User:
    Lambo
    PHP:
    if($sender->getLevel()->getName()=="world"){

    }else 
    $sender->sendMessage("This command only works in the level world.");
    Dutok, tnpxxsheepdog and iJoshuaHD like this.
  4. tnpxxsheepdog
    Offline

    tnpxxsheepdog Notable Member

    Joined:
    Dec 31, 2013
    Posts:
    350
    Minecraft User:
    TNPXXSHEEPDOG
    Was something like this possible with the old API or is this part of the new object system in 1.4?
    ZenCloud likes this.
  5. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    431
    Plugins:
    4
    Minecraft User:
    Lambo
    It is possible in both
    Dutok likes this.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    This is possible using the new API permission system.
  7. tnpxxsheepdog
    Offline

    tnpxxsheepdog Notable Member

    Joined:
    Dec 31, 2013
    Posts:
    350
    Minecraft User:
    TNPXXSHEEPDOG
    Ok cool, thanks!
  8. ZenCloud
    Offline

    ZenCloud Active Member

    Joined:
    May 14, 2014
    Posts:
    61
    Minecraft User:
    ZenCloud
    Ok thanks for that. Me and my plugin devs will work on that

Share This Page

Advertisement