Sync with master.
This commit is contained in:
parent
98c8e00f5a
commit
392b8ac19e
@ -44,7 +44,8 @@ public class AsynchronousQuit implements AsynchronousProcess {
|
|||||||
@Inject
|
@Inject
|
||||||
private SessionManager sessionManager;
|
private SessionManager sessionManager;
|
||||||
|
|
||||||
AsynchronousQuit() { }
|
AsynchronousQuit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void processQuit(Player player, boolean isKick) {
|
public void processQuit(Player player, boolean isKick) {
|
||||||
@ -72,9 +73,11 @@ public class AsynchronousQuit implements AsynchronousProcess {
|
|||||||
database.updateSession(auth);
|
database.updateSession(auth);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isKick) {
|
//always unauthenticate the player - use session only for auto logins on the same ip
|
||||||
if (plugin.isEnabled()) {
|
playerCache.removePlayer(name);
|
||||||
BukkitTask task = plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, new Runnable() {
|
|
||||||
|
if (plugin.isEnabled() && service.getProperty(PluginSettings.SESSIONS_ENABLED)) {
|
||||||
|
BukkitTask task = plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, new Runnable() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user