Actually use the line parameter in ServerChatEvent, closes #401
This commit is contained in:
parent
f1987359c9
commit
57b77ce17e
|
@ -3,7 +3,8 @@ package net.minecraftforge.event;
|
||||||
import net.minecraft.entity.player.EntityPlayerMP;
|
import net.minecraft.entity.player.EntityPlayerMP;
|
||||||
|
|
||||||
@Cancelable
|
@Cancelable
|
||||||
public class ServerChatEvent extends Event {
|
public class ServerChatEvent extends Event
|
||||||
|
{
|
||||||
public final String message, username;
|
public final String message, username;
|
||||||
public final EntityPlayerMP player;
|
public final EntityPlayerMP player;
|
||||||
public String line;
|
public String line;
|
||||||
|
@ -13,6 +14,6 @@ public class ServerChatEvent extends Event {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
this.player = player;
|
this.player = player;
|
||||||
this.username = player.username;
|
this.username = player.username;
|
||||||
this.line = "<" + username + "> " + message;
|
this.line = line;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue