How to make another player send a message

Discussion in 'Plugin Development' started by bulby13, May 5, 2013.

  1. Offline

    bulby13

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The title says it all. How do I make another player send a message(any methods that do that)? I tried searching on Bukkit Javadocs to find a method but I can't find a method which does that.
  2. Online

    chasechocolate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    player.chat("message")?
  3. Offline

    InspectorFacepalm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Uh, I got a question, is there any difference from doing
    sender.chat("message");?
  4. Offline

    MTN

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    a sender is another class, not only players, but everyone who can send a command (incl. console)
    Because Player extends CommandSender, the methods are the same (player inherites the method from CommandSender)

Share This Page