Implement new address to PlayerLoginEvent; Addresses BUKKIT-431

This commit is contained in:
Wesley Wolfe 2012-04-03 17:04:28 -05:00
parent 20dea920c2
commit 6a79e506cf

View File

@ -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();