Dropped AltFreeTeleport config.
Contributed by proGenitor.
This commit is contained in:
@@ -752,10 +752,6 @@ PetitioningAllowed = True
|
||||
MaxPetitionsPerPlayer = 5
|
||||
MaxPetitionsPending = 25
|
||||
|
||||
# Free teleporting around the world.
|
||||
# Default: False
|
||||
AltFreeTeleporting = False
|
||||
|
||||
# Max player level for free teleporting around the world.
|
||||
# Default: 76
|
||||
MaxFreeTeleportLevel = 76
|
||||
|
@@ -274,7 +274,6 @@ public final class Config
|
||||
public static boolean PETITIONING_ALLOWED;
|
||||
public static int MAX_PETITIONS_PER_PLAYER;
|
||||
public static int MAX_PETITIONS_PENDING;
|
||||
public static boolean ALT_GAME_FREE_TELEPORT;
|
||||
public static int MAX_FREE_TELEPORT_LEVEL;
|
||||
public static int DELETE_DAYS;
|
||||
public static String PARTY_XP_CUTOFF_METHOD;
|
||||
@@ -1739,7 +1738,6 @@ public final class Config
|
||||
PETITIONING_ALLOWED = Character.getBoolean("PetitioningAllowed", true);
|
||||
MAX_PETITIONS_PER_PLAYER = Character.getInt("MaxPetitionsPerPlayer", 5);
|
||||
MAX_PETITIONS_PENDING = Character.getInt("MaxPetitionsPending", 25);
|
||||
ALT_GAME_FREE_TELEPORT = Character.getBoolean("AltFreeTeleporting", false);
|
||||
MAX_FREE_TELEPORT_LEVEL = Character.getInt("MaxFreeTeleportLevel", 76);
|
||||
DELETE_DAYS = Character.getInt("DeleteCharAfterDays", 1);
|
||||
PARTY_XP_CUTOFF_METHOD = Character.getString("PartyXpCutoffMethod", "level").toLowerCase();
|
||||
|
@@ -270,7 +270,7 @@ public final class TeleportHolder
|
||||
*/
|
||||
private boolean shouldPayFee(L2PcInstance player, TeleportLocation loc)
|
||||
{
|
||||
return (_type != TeleportType.NORMAL) || (!Config.ALT_GAME_FREE_TELEPORT && ((player.getLevel() > Config.MAX_FREE_TELEPORT_LEVEL) || player.isSubClassActive()) && ((loc.getFeeId() != 0) && (loc.getFeeCount() > 0)));
|
||||
return (_type != TeleportType.NORMAL) || (((player.getLevel() > Config.MAX_FREE_TELEPORT_LEVEL) || player.isSubClassActive()) && ((loc.getFeeId() != 0) && (loc.getFeeCount() > 0)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user