2012-10-28 10:58:23 +00:00
|
|
|
package net.minecraftforge.event;
|
|
|
|
|
|
|
|
import net.minecraft.src.EntityPlayerMP;
|
|
|
|
|
|
|
|
@Cancelable
|
|
|
|
public class ServerChatEvent extends Event {
|
2012-10-28 10:58:23 +00:00
|
|
|
public final String message, username;
|
|
|
|
public final EntityPlayerMP player;
|
|
|
|
public String line;
|
|
|
|
public ServerChatEvent(EntityPlayerMP player, String message, String line)
|
|
|
|
{
|
|
|
|
super();
|
|
|
|
this.message = message;
|
|
|
|
this.player = player;
|
|
|
|
this.username = player.username;
|
|
|
|
this.line = "<" + username + "> " + message;
|
|
|
|
}
|
|
|
|
}
|