forked from 2009Scape/Server
Trying to patch up some junky code in the management server
This commit is contained in:
parent
7859c87565
commit
8efd877a11
8 changed files with 18 additions and 22 deletions
|
|
@ -66,7 +66,7 @@ public final class PlayerSession {
|
|||
/**
|
||||
* The time stamp of last disconnection.
|
||||
*/
|
||||
private long disconnectionTime = 0l;
|
||||
private long disconnectionTime = 0L;
|
||||
|
||||
/**
|
||||
* How long the player is banned for.
|
||||
|
|
@ -463,11 +463,8 @@ public final class PlayerSession {
|
|||
this.disconnectionTime = time;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if(o instanceof PlayerSession) {
|
||||
return username.equals(((PlayerSession) o).username);
|
||||
} else return false;
|
||||
public boolean equalsSession(PlayerSession o){
|
||||
return username.equals(o.username);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue