mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 13:09:59 +00:00
Configurable kick message when you don't have forge.
This commit is contained in:
1 parent
5a0f73436e
commit
7aaf3e98d2
2 files changed
+4
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user