Merge pull request #6 from NorbiPeti/patch-1

Fixed issues with host lookup from hosts file
This commit is contained in:
games647
2016-04-03 11:21:29 +02:00

View File

@ -51,7 +51,7 @@ public class BukkitJoinListener implements Listener {
public void run() {
if (player.isOnline()) {
//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);
//blacklist this target player for BungeeCord Id brute force attacks