Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Clean up SessionTimer and make it package local.
Dieser Commit ist enthalten in:
Ursprung
71c5b61050
Commit
45f81a177b
@ -26,15 +26,13 @@ import com.sk89q.worldedit.WorldEdit;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to remove expired sessions in Bukkit.
|
* Used to remove expired sessions in Bukkit.
|
||||||
*
|
|
||||||
* @author sk89q
|
|
||||||
*/
|
*/
|
||||||
public class SessionTimer implements Runnable {
|
class SessionTimer implements Runnable {
|
||||||
|
|
||||||
private WorldEdit worldEdit;
|
private WorldEdit worldEdit;
|
||||||
private SessionCheck checker;
|
private SessionCheck checker;
|
||||||
|
|
||||||
public SessionTimer(WorldEdit worldEdit, final Server server) {
|
SessionTimer(WorldEdit worldEdit, final Server server) {
|
||||||
this.worldEdit = worldEdit;
|
this.worldEdit = worldEdit;
|
||||||
this.checker = new SessionCheck() {
|
this.checker = new SessionCheck() {
|
||||||
public boolean isOnlinePlayer(String name) {
|
public boolean isOnlinePlayer(String name) {
|
||||||
@ -44,6 +42,7 @@ public class SessionTimer implements Runnable {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
worldEdit.flushExpiredSessions(checker);
|
worldEdit.flushExpiredSessions(checker);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren