forked from TuxCoding/FastLogin
Fixed issues with host lookup from hosts file
I have values set in my hosts file and the original way of getting the address returnned the hostname it was linked to.
This commit is contained in:
@ -51,7 +51,7 @@ public class BukkitJoinListener implements Listener {
|
|||||||
public void run() {
|
public void run() {
|
||||||
if (player.isOnline()) {
|
if (player.isOnline()) {
|
||||||
//remove the bungeecord identifier
|
//remove the bungeecord identifier
|
||||||
String id = '/' + player.getAddress().getHostString() + ':' + player.getAddress().getPort();
|
String id = '/' + player.getAddress().getAddress().getHostAddress() + ':' + player.getAddress().getPort();
|
||||||
PlayerSession session = plugin.getSessions().get(id);
|
PlayerSession session = plugin.getSessions().get(id);
|
||||||
|
|
||||||
//blacklist this target player for BungeeCord Id brute force attacks
|
//blacklist this target player for BungeeCord Id brute force attacks
|
||||||
|
Reference in New Issue
Block a user