Browse Source

60 second default logout timer

lakebane-master
FatBoy-DOTC 10 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 {
delta = 60000; 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()); playerCharacter.stopMovement(playerCharacter.getLoc());
UpdateStateMsg updateStateMsg = new UpdateStateMsg(); UpdateStateMsg updateStateMsg = new UpdateStateMsg();
updateStateMsg.setPlayer(playerCharacter); updateStateMsg.setPlayer(playerCharacter);

Loading…
Cancel
Save