3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 13:00:06 +01:00

Implement new address to PlayerLoginEvent; Addresses BUKKIT-431

Dieser Commit ist enthalten in:
Wesley Wolfe 2012-04-03 17:04:28 -05:00
Ursprung 20dea920c2
Commit 6a79e506cf

Datei anzeigen

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