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

Send a message as another Player

Comments in 'Plugin Development' started by CraftYourBukkit, May 13, 2015.

  1. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    I want a command which sends a message as a defined player. Command: /fake msg Bukkit Hey guys! My Code actually sends the message correctly but the Sender of it isn't Bukkit, it's nothing. I used array_shift($args) 2 times to get the message, how can I get the Player name then?
  2. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    did you try this? implode(" ", $args)
  3. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Thanks for your help but I already found it! :)

Share This Page

Advertisement