Browse Source

60 second default logout timer

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
067f8f8d89
  1. 10
      src/engine/server/world/WorldServer.java

10
src/engine/server/world/WorldServer.java

@ -731,6 +731,16 @@ public class WorldServer { @@ -731,6 +731,16 @@ public class WorldServer {
delta = 60000;
}
boolean enemiesClose = false;
for(AbstractWorldObject awo : WorldGrid.getObjectsInRangePartial(playerCharacter.loc,MBServerStatics.CHARACTER_LOAD_RANGE,MBServerStatics.MASK_PLAYER))
{
PlayerCharacter enemy = (PlayerCharacter) awo;
if(enemy.getGuild().equals(playerCharacter.getGuild()) == false && enemy.getGuild().getNation().equals(playerCharacter.getGuild().getNation()) == false)
enemiesClose = true;
}
if(enemiesClose)
delta += 60000;
playerCharacter.stopMovement(playerCharacter.getLoc());
UpdateStateMsg updateStateMsg = new UpdateStateMsg();
updateStateMsg.setPlayer(playerCharacter);

Loading…
Cancel
Save