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

Certain World - Certain Command to Player

Comments in 'Plugin Development' started by DunxandMinecraft, Dec 8, 2015.

  1. DunxandMinecraft
    Offline

    DunxandMinecraft Active Member

    Joined:
    Oct 26, 2014
    Posts:
    158
    Hello,

    I am looking for help developing a plugin that sees when you are in a certain world such as 'hi' and executes a certain command to a certain player.
    How can I do this?

    Thanks!
  2. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    i didn't understand, do you mean command only can be runned the world 'hi' ?
  3. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    PHP:
    if($event->getPlayer()->getLevel()->getName() == "playerMap" and $event->getPlayer()->getName() == "certainPlayer"){
    #code
    }
    Last edited: Dec 10, 2015
  4. DunxandMinecraft
    Offline

    DunxandMinecraft Active Member

    Joined:
    Oct 26, 2014
    Posts:
    158
    Thanks for help :)

Share This Page

Advertisement