Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Send command by player

Comments in 'Plugin Development' started by VoBIs, May 30, 2016.

  1. VoBIs
    Offline

    VoBIs New Member

    Joined:
    Jun 20, 2015
    Posts:
    18
    Minecraft User:
    VoBIs
    Hi, and thanks :)
    Both through the code to send the command from the player? For example: a player hit the NPC and then click the name of the player
  2. applqpak
    Offline

    applqpak Active Member Plugin Developer

    Joined:
    Dec 16, 2015
    Posts:
    284
    Plugins:
    1
    Minecraft User:
    applqpak
    I think it's:
    PHP:
    $this->getServer()->dispatchCommand($player$command);
    Where $player is an instance of Player, and $command is your command.
    Primus likes this.

Share This Page

Advertisement