mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
Actually use the line parameter in ServerChatEvent, closes #401
This commit is contained in:
1 parent
f1987359c9
commit
57b77ce17e
1 file changed
+3
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user