From 7aaf3e98d2e5f1f2c4f9d232352d973d26e11858 Mon Sep 17 00:00:00 2001 From: LexManos Date: Fri, 15 Jun 2012 14:03:47 -0700 Subject: [PATCH] Configurable kick message when you don't have forge. --- .../src/net/minecraft/src/forge/ForgeHooksServer.java | 2 +- .../forge_server/src/net/minecraft/src/mod_MinecraftForge.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/forge/forge_server/src/net/minecraft/src/forge/ForgeHooksServer.java b/forge/forge_server/src/net/minecraft/src/forge/ForgeHooksServer.java index f1a92397c..315d912b6 100644 --- a/forge/forge_server/src/net/minecraft/src/forge/ForgeHooksServer.java +++ b/forge/forge_server/src/net/minecraft/src/forge/ForgeHooksServer.java @@ -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); } } diff --git a/forge/forge_server/src/net/minecraft/src/mod_MinecraftForge.java b/forge/forge_server/src/net/minecraft/src/mod_MinecraftForge.java index 17f538553..29173ccf6 100644 --- a/forge/forge_server/src/net/minecraft/src/mod_MinecraftForge.java +++ b/forge/forge_server/src/net/minecraft/src/mod_MinecraftForge.java @@ -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() {