ForgePatch/common/net/minecraftforge/event/ServerChatEvent.java
2012-12-12 21:58:35 -08:00

18 lines
517 B
Java

package net.minecraftforge.event;
import net.minecraft.entity.player.EntityPlayerMP;
@Cancelable
public class ServerChatEvent extends Event {
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;
}
}