Actually use the line parameter in ServerChatEvent, closes #401

This commit is contained in:
LexManos 2013-02-15 03:22:59 -08:00
parent f1987359c9
commit 57b77ce17e
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@ package net.minecraftforge.event;
import net.minecraft.entity.player.EntityPlayerMP;
@Cancelable
public class ServerChatEvent extends Event {
public class ServerChatEvent extends Event
{
public final String message, username;
public final EntityPlayerMP player;
public String line;
@ -13,6 +14,6 @@ public class ServerChatEvent extends Event {
this.message = message;
this.player = player;
this.username = player.username;
this.line = "<" + username + "> " + message;
this.line = line;
}
}