1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Hello I need to help

Discussion in 'Development' started by ImNewCoder, Aug 1, 2021.

  1. ImNewCoder

    ImNewCoder Creeper

    Messages:
    3
    GitHub:
    ImNewCoder
    Is there anyone who can help me. How to let a player in one world kill another player and receive a reward that is not available in another world?
     
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    You can have a check for the world that player is in.

    PHP:
    if($player->getLevel()->getFolderName() === "worldname"){
         
    // Code
    }
     
    Agent and TAcooo like this.
  3. ImNewCoder

    ImNewCoder Creeper

    Messages:
    3
    GitHub:
    ImNewCoder
    Thx you
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.