Channel validation

This commit is contained in:
Christian Weeks committed 2012-04-03 22:45:27 -04:00
1 parent c74e119993
commit bd34b97e9b
3 files changed
+103 -6

No files matched your search

+12
View File
@@ -516,4 +516,16 @@ public class ModLoader {
public static MinecraftServer getMinecraftServerInstance() {
return FMLHandler.instance().getServer();
}
/**
* To properly implement packet 250 protocol you should always check your channel
* is active prior to sending the packet
*
* @param player
* @param channel
* @return
*/
public static boolean isChannelActive(EntityPlayer player, String channel) {
return FMLHooks.instance().isChannelActive(channel,player);
}
}