summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortahg <tahgtahv@gmail.com>2011-03-18 00:03:03 -0700
committertahg <tahgtahv@gmail.com>2011-03-18 00:03:03 -0700
commit1144013362a62ea41327c4f10f2691eca9fe9688 (patch)
tree7c9ad12b635e07ec26368dd07d4e97d7c1f44c5d
parentf28f3a6a9cc3047c5c1aa2e7a0b456d1f4197f1b (diff)
downloadcraftbukkit-1144013362a62ea41327c4f10f2691eca9fe9688.tar
craftbukkit-1144013362a62ea41327c4f10f2691eca9fe9688.tar.gz
craftbukkit-1144013362a62ea41327c4f10f2691eca9fe9688.tar.lz
craftbukkit-1144013362a62ea41327c4f10f2691eca9fe9688.tar.xz
craftbukkit-1144013362a62ea41327c4f10f2691eca9fe9688.zip
Hacky solution to expose ip. Will fix properly later if I care to give a ****
-rw-r--r--src/main/java/net/minecraft/server/ServerConfigurationManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java
index 274fa255..6cc6a7a1 100644
--- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java
+++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java
@@ -138,6 +138,8 @@ public class ServerConfigurationManager {
event.disallow(PlayerLoginEvent.Result.KICK_BANNED, "Your IP address is banned from this server!");
} else if (this.b.size() >= this.e) {
event.disallow(PlayerLoginEvent.Result.KICK_FULL, "The server is full!");
+ } else {
+ event.disallow(PlayerLoginEvent.Result.ALLOWED, s2);
}
server.getPluginManager().callEvent(event);