Solved PlayerChatEvent v2

Discussion in 'Development' started by CocoonBuilder, Nov 7, 2018.

  1. CocoonBuilder

    CocoonBuilder Spider Jockey

    Messages:
    43
    GitHub:
    chimneychuckles
    Code:
                $player->chat($hand->getName() && $hand->getCount());
    
    when i typed in chat it always say 1

    btw that is not full code i just wanna know what i did wrong (no error either)[/CODE]
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin Noobiest member in the PMMP Team

    Messages:
    1,716
    GitHub:
    sof3
    What do you think you're doing with the && there?
     
    OnTheVerge likes this.
  3. CocoonBuilder

    CocoonBuilder Spider Jockey

    Messages:
    43
    GitHub:
    chimneychuckles
    well im trying to get item name and count and from the doing the research i may as well as just try it :/
     
  4. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    570
    0 and 1
    0 stands for true, 1 for false
    Here's what I would do:
    PHP:
                $player->chat($hand->getName()." ".$hand->getCount());
     
    CocoonBuilder likes this.
  5. CocoonBuilder

    CocoonBuilder Spider Jockey

    Messages:
    43
    GitHub:
    chimneychuckles
    Thank you!
     

Share This Page

  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.