summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorWesley Wolfe <weswolf@aol.com>2012-04-03 17:04:28 -0500
committerWesley Wolfe <weswolf@aol.com>2012-04-03 21:07:15 -0500
commit6a79e506cf3c5b8714d1e684713758ca6037540b (patch)
treedb337d8a948b7695e8ce27f7bfd11c377bac5dad /src/main/java/net
parent20dea920c225d6955867136ce1222a5ca0f91ce4 (diff)
downloadcraftbukkit-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.java4
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();