How to make another player send a message

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

  1. Offline

    bulby13

    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. player.chat("message")?
     
  3. Uh, I got a question, is there any difference from doing
    sender.chat("message");?
     
  4. 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