mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Down to 215 errors, pretty much everything is packets now
This commit is contained in:
1 parent
fa0c2e6f12
commit
8be5ecf140
17 files changed
+49
-45
No files matched your search
@@ -216,22 +216,6 @@ public final class MekanismUtils
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a Packet3Chat packet to the defined player, with the defined message.
|
||||
* @param playerUsername - Player to send packet to.
|
||||
* @param msg - message sent to player.
|
||||
*/
|
||||
public static void sendChatMessageToPlayer(String playerUsername, String msg)
|
||||
{
|
||||
EntityPlayer player = FMLServerHandler.instance().getServer().getConfigurationManager().getPlayerForUsername(playerUsername);
|
||||
Packet3Chat chatPacket = new Packet3Chat(msg);
|
||||
|
||||
if(player != null)
|
||||
{
|
||||
((EntityPlayerMP)player).playerNetServerHandler.sendPacketToPlayer(chatPacket);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the closest teleporter between a selection of one or two.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user