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

EXP Functions

Discussion in 'Development' started by Noobie, Dec 11, 2016.

Thread Status:
Not open for further replies.
  1. Noobie

    Noobie Silverfish

    Messages:
    16
    PHP:
     if($sender->addXpLevel(-13)){
                       
    $sender->sendMessage("§bSuccessful");
                     return;
                   }
                   else{
                        
    $sender->sendMessage("§cUnsuccessful");
                       return;
                   }
    This code still gives output as Successful even though it's not removing 13 levels from the player's exp because the player only has 1 level...
     
  2. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    What is the point in making this thread? PocketMine doesn't have experience implemented yet, and this is not a Genisys forums... :p
     
  3. Magicode

    Magicode Baby Zombie

    Messages:
    183
    GitHub:
    magicode1
    Pocketmine hasn't implemented XP yet. That would explain why nothing happens :)
     
    Sandertv likes this.
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Please don't post Genisys-related questions. You will be banned if this happens again.
     
Thread Status:
Not open for further replies.
  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.