Solved How to make it so a player announce's a msg!?

Discussion in 'Plugin Development' started by PerezHD, Nov 28, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    PerezHD

    Well basically I am trying to figure out how to make it so a player can annouce a message.

    Meaning, for example, I type /welcome,
    then the player will announce the message?

    Instead of using Bukkit.broadcastMessage();
    I'm trying to make it so a player themself announces the msg.
    For example:
    PerezHD: Hey welcome to our server!
     
  2. Offline

    Skionz

    PerezHD
    Code:
    Bukkit.broadcast(player.getName() + ": " + message);
     
    PerezHD likes this.
  3. Offline

    xManfro

    PerezHD This should work
    Code:java
    1. Player p = (Player) sender;
    2. p.chat("Hey welcome to our server")
     
    xMrPoi likes this.
  4. Offline

    ChipDev

    Skionz read the java docs :p that way is cheaty
     
    xManfro and Skionz like this.
Thread Status:
Not open for further replies.

Share This Page