blob: 100f41ba0d43070fac9127c6cd3b2f7f998985f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package jp.plusplus.fbs.packet;
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
import net.minecraft.entity.player.EntityPlayer;
/**
* Createdby pluslus_Fon 2015/06/05.
*/
public class MessagePlayerJoinInAnoucementHandler implements IMessageHandler<MessagePlayerJoinInAnnouncement, MessagePlayerProperties> {
@Override
public MessagePlayerProperties onMessage(MessagePlayerJoinInAnnouncement message, MessageContext ctx) {
String uuidString = message.getUuid();
EntityPlayer player = ctx.getServerHandler().playerEntity;
if (player.getGameProfile().getId().toString().equals(uuidString)) {
return new MessagePlayerProperties(player);
}
return null;
}
}
|