Package world

Source Code of world.ChatManager

package world;


import packets.SPacket;
import packets.s2cpackets.S0x03;

import entities.Player;

public final class ChatManager extends WorldStateMonitor {

  public ChatManager(WorldState state) {
    super(state);
  }

 
  public void newMessage(String message) {
    SPacket p = new S0x03(message);
    getWorldState().connectionManager().sendPacketToAll(p);
  }
 
 
  public void newMessage(Player player, String message) {
    SPacket p = new S0x03(player, message);
    getWorldState().connectionManager().sendPacketToAll(p);
  }
 
}
TOP

Related Classes of world.ChatManager

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.