Configurable kick message when you don't have forge.

This commit is contained in:
LexManos 2012-06-15 14:03:47 -07:00
parent 5a0f73436e
commit 7aaf3e98d2
2 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class ForgeHooksServer
}
else
{
net.kickPlayer("This server requires you to have Minecraft Forge installed.");
net.kickPlayer(mod_MinecraftForge.NO_FORGE_KICK_MESSAGE);
}
}

View File

@ -14,6 +14,9 @@ public class mod_MinecraftForge extends NetworkMod
@MLProp(info = "Set to false to reproduce a vinella bug that prevents mobs from spawning on inverted half-slabs and inverted stairs.")
public static boolean SPAWNER_ALLOW_ON_INVERTED = true;
@MLProp(info = "The kick message used when a client tries to connect but does nto have Minecraft Forge installed.")
public static String NO_FORGE_KICK_MESSAGE = "This server requires you to have Minecraft Forge installed. http://MinecraftForge.net/";
@Override
public String getVersion()
{