public class PlayerKickHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
kickPlayer(net.minecraft.entity.player.EntityPlayerMP ply,
net.minecraft.util.IChatComponent component)
A
IChatComponent -friendly version of NetHandlerPlayServer.kickPlayerFromServer(String) . |
public static void kickPlayer(net.minecraft.entity.player.EntityPlayerMP ply, net.minecraft.util.IChatComponent component)
IChatComponent
-friendly version of NetHandlerPlayServer.kickPlayerFromServer(String)
.
This duplicates the code of that kick implementation pretty much exactlyply
- The player to kickcomponent
- The kick message