Config
public static boolean ANTI_FARM_PARTY_ENABLED;
+ public static boolean ANTI_FARM_IP_ENABLED;
public static boolean ANTI_FARM_SUMMON;
ANTI_FARM_PARTY_ENABLED = Boolean.parseBoolean(pvpSettings.getProperty("AntiFarmParty", "False"));
+ ANTI_FARM_IP_ENABLED = Boolean.parseBoolean(pvpSettings.getProperty("AntiFarmIP", "False"));
ANTI_FARM_SUMMON = Boolean.parseBoolean(pvpSettings.getProperty("AntiFarmSummon", "False"));
com.l2jfrozen.gameserver.model.actor.instance/Pcinstance.java
return false;
}
+ //Anti FARM same Ip
+ if(Config.ANTI_FARM_IP_ENABLED){
+
+ if(this.getClient() != null && targetPlayer.getClient() != null)
+ {
+ String ip1 = this.getClient().getConnection().getInetAddress().getHostAddress();
+ String ip2 = targetPlayer.getClient().getConnection().getInetAddress().getHostAddress();
+
+ if (ip1.equals(ip2))
+ {
+ this.sendMessage("Farm is punishable with Ban! Gm informed.");
+ _log.warning("PVP POINT FARM ATTEMPT: " + this.getName() + " and " + targetPlayer.getName() +". SAME IP.");
+ return false;
+ }
+ }
+ }
+ return true;
+ }
+ return true;
+ }
/**
* Adds the item reword.
Config/ pvp
# AntiFarm for Party, IP, Clan and Ally.
AntiFarmParty = False
+ AntiFarmIP = False
AntiFarmClanAlly = False