AntiFeed enabled and moved to PvP settings.
This commit is contained in:
@ -58,7 +58,7 @@ public final class AntiFeedManager
|
||||
*/
|
||||
public final boolean check(L2Character attacker, L2Character target)
|
||||
{
|
||||
if (!Config.L2JMOD_ANTIFEED_ENABLE)
|
||||
if (!Config.ANTIFEED_ENABLE)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -74,15 +74,15 @@ public final class AntiFeedManager
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((Config.L2JMOD_ANTIFEED_INTERVAL > 0) && _lastDeathTimes.containsKey(targetPlayer.getObjectId()))
|
||||
if ((Config.ANTIFEED_INTERVAL > 0) && _lastDeathTimes.containsKey(targetPlayer.getObjectId()))
|
||||
{
|
||||
if ((System.currentTimeMillis() - _lastDeathTimes.get(targetPlayer.getObjectId())) < Config.L2JMOD_ANTIFEED_INTERVAL)
|
||||
if ((System.currentTimeMillis() - _lastDeathTimes.get(targetPlayer.getObjectId())) < Config.ANTIFEED_INTERVAL)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.L2JMOD_ANTIFEED_DUALBOX && (attacker != null))
|
||||
if (Config.ANTIFEED_DUALBOX && (attacker != null))
|
||||
{
|
||||
final L2PcInstance attackerPlayer = attacker.getActingPlayer();
|
||||
if (attackerPlayer == null)
|
||||
@ -95,7 +95,7 @@ public final class AntiFeedManager
|
||||
if ((targetClient == null) || (attackerClient == null) || targetClient.isDetached() || attackerClient.isDetached())
|
||||
{
|
||||
// unable to check ip address
|
||||
return !Config.L2JMOD_ANTIFEED_DISCONNECTED_AS_DUALBOX;
|
||||
return !Config.ANTIFEED_DISCONNECTED_AS_DUALBOX;
|
||||
}
|
||||
|
||||
return !targetClient.getConnectionAddress().equals(attackerClient.getConnectionAddress());
|
||||
|
Reference in New Issue
Block a user