Add Hostname to restricted ip method

This commit is contained in:
Xephi
2015-12-28 11:59:30 +01:00
parent c94b6223a1
commit 806201e1cc
2 changed files with 14 additions and 5 deletions
@@ -58,7 +58,7 @@ public class AsynchronousJoin {
}
final String ip = plugin.getIP(player);
if (Settings.isAllowRestrictedIp && !Settings.getRestrictedIp(name, ip)) {
if (Settings.isAllowRestrictedIp && !Settings.getRestrictedIp(name, ip, player.getAddress().getHostName())) {
sched.scheduleSyncDelayedTask(plugin, new Runnable() {
@Override