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

pocketmine\command\CommandMap - How To use it?

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

?

How To Use CommandMap?

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

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

    1 vote(s)
    50.0%
  1. BlackPM

    BlackPM Silverfish

    Messages:
    21
    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 Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    how do you want to use it? register new commands? run commands?
     
  3. BlackPM

    BlackPM Silverfish

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

    wolfdale Zombie Pigman

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

    BlackPM Silverfish

    Messages:
    21
    GitHub:
    BlackPMFury
    Thanks You Very much.
     
  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.