Implement new address to PlayerLoginEvent; Addresses BUKKIT-431
Dieser Commit ist enthalten in:
Ursprung
20dea920c2
Commit
6a79e506cf
@ -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();
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren