Dropped the use of GameTimeController for spawn protection.
This commit is contained in:
@@ -21,7 +21,7 @@ DecreaseSkillOnDelevel = True
|
||||
|
||||
# Weight limit multiplier. Example: Setting this to 5 will give players 5x the normal weight limit.
|
||||
# Default: 1
|
||||
AltWeightLimit = 2
|
||||
AltWeightLimit = 1
|
||||
|
||||
# Run speed modifier. Example: Setting this to 5 will give players +5 to their running speed.
|
||||
# Default: 0
|
||||
@@ -753,15 +753,15 @@ UnstuckInterval = 300
|
||||
# Default: 0
|
||||
TeleportWatchdogTimeout = 0
|
||||
|
||||
# After a player teleports, this is the time the player is protected.
|
||||
# After a player spawns, this is the time the player is protected.
|
||||
# This time is in seconds, leave it at 0 if you want this feature disabled.
|
||||
# Retail (Since GE): 600 (10 minutes)
|
||||
# Default: 600
|
||||
PlayerSpawnProtection = 600
|
||||
|
||||
# Teleport spawn protection time. It will protect the player in the
|
||||
# teleport spawn for the given time. 0 to disable feature
|
||||
PlayerTeleportProtection = 30
|
||||
# After a player teleports, this is the time the player is protected.
|
||||
# This time is in seconds, leave it at 0 if you want this feature disabled.
|
||||
PlayerTeleportProtection = 0
|
||||
|
||||
# If enabled, players respawn in town on different locations defined in zone.xml for given town.
|
||||
# If disabled the first spawn location from zone.xml is used.
|
||||
|
||||
@@ -130,7 +130,7 @@ public class FindPvP implements IBypassHandler
|
||||
}
|
||||
|
||||
activeChar.teleToLocation((mostPvP.getX() + Rnd.get(300)) - 150, (mostPvP.getY() + Rnd.get(300)) - 150, mostPvP.getZ());
|
||||
activeChar.setProtection(true);
|
||||
activeChar.setSpawnProtection(true);
|
||||
if (!activeChar.isGM())
|
||||
{
|
||||
activeChar.setPvpFlagLasts(System.currentTimeMillis() + Config.PVP_PVP_TIME);
|
||||
|
||||
Reference in New Issue
Block a user