diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-04-03 17:04:28 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-04-03 21:07:15 -0500 |
commit | 6a79e506cf3c5b8714d1e684713758ca6037540b (patch) | |
tree | db337d8a948b7695e8ce27f7bfd11c377bac5dad /src/main/java/net | |
parent | 20dea920c225d6955867136ce1222a5ca0f91ce4 (diff) | |
download | craftbukkit-6a79e506cf3c5b8714d1e684713758ca6037540b.tar craftbukkit-6a79e506cf3c5b8714d1e684713758ca6037540b.tar.gz craftbukkit-6a79e506cf3c5b8714d1e684713758ca6037540b.tar.lz craftbukkit-6a79e506cf3c5b8714d1e684713758ca6037540b.tar.xz craftbukkit-6a79e506cf3c5b8714d1e684713758ca6037540b.zip |
Implement new address to PlayerLoginEvent; Addresses BUKKIT-431
Diffstat (limited to 'src/main/java/net')
-rw-r--r-- | src/main/java/net/minecraft/server/ServerConfigurationManager.java | 4 |
1 files 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 74990043..7bd85ea7 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(); |