Dropped AltFreeTeleport config.

Contributed by proGenitor.
This commit is contained in:
MobiusDev
2018-05-10 13:08:51 +00:00
parent 8f144da03a
commit 243ae0bd52
18 changed files with 10 additions and 46 deletions

View File

@@ -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

View File

@@ -280,7 +280,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;
@@ -1754,7 +1753,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();

View File

@@ -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)));
}
/**