From 6a79e506cf3c5b8714d1e684713758ca6037540b Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Tue, 3 Apr 2012 17:04:28 -0500 Subject: [PATCH] Implement new address to PlayerLoginEvent; Addresses BUKKIT-431 --- .../java/net/minecraft/server/ServerConfigurationManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java index 749900436d..7bd85ea704 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java @@ -203,8 +203,8 @@ public class ServerConfigurationManager { // in the event, check with plugins to see if it's ok, and THEN kick // depending on the outcome. Also change any reference to this.e.c to entity.world EntityPlayer entity = new EntityPlayer(this.server, this.server.getWorldServer(0), s, new ItemInWorldManager(this.server.getWorldServer(0))); - Player player = (Player) entity.getBukkitEntity(); - PlayerLoginEvent event = new PlayerLoginEvent(player, hostname); + Player player = entity.getBukkitEntity(); + PlayerLoginEvent event = new PlayerLoginEvent(player, hostname, netloginhandler.getSocket().getInetAddress()); String s1 = netloginhandler.networkManager.getSocketAddress().toString();