pocketmine\command\CommandMap - How To use it?

Discussion in 'Requests' started by BlackPM, May 24, 2019.

?

How To Use CommandMap?

  1. $this->getServer()->getCommandMap(); ?

    0 vote(s)
    0.0%
  2. $this->getServer()->dispatchCommand(new CommandMap(), "");?

    0 vote(s)
    0.0%
  1. BlackPM

    BlackPM Silverfish

    Messages:
    15
    GitHub:
    BlackPMFury
    I'm newbie at PHP and Pocketmine.... I dont Know how to use CommandMap
    help me if you can, Thanks Very much.
     
  2. wolfdale

    wolfdale Zombie

    Messages:
    327
    how do you want to use it? register new commands? run commands?
     
  3. BlackPM

    BlackPM Silverfish

    Messages:
    15
    GitHub:
    BlackPMFury
    run command.
     
  4. wolfdale

    wolfdale Zombie

    Messages:
    327
    PHP:
    $this->getServer()->dispatchCommand($player,"command");//without / infront
     
  5. BlackPM

    BlackPM Silverfish

    Messages:
    15
    GitHub:
    BlackPMFury
    Thanks You Very much.
     

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.