mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
implementing tracking and unloading of transient loaded users (loaded for offline players)
This commit is contained in:
11 files changed
+70
-10
No files matched your search
@@ -135,6 +135,9 @@ public final class CarbonChatPaper implements CarbonChat {
|
||||
Bukkit.getScheduler().runTaskTimerAsynchronously(this.plugin,
|
||||
() -> this.injector.getInstance(ProfileCache.class).save(), 20 * 60 * 15, 20 * 60 * 15);
|
||||
|
||||
Bukkit.getScheduler().runTaskTimerAsynchronously(this.plugin,
|
||||
() -> this.userManager.cleanup(), 30 * 20, 30 * 20);
|
||||
|
||||
// Load channels
|
||||
((CarbonChannelRegistry) this.channelRegistry()).loadConfigChannels(this.carbonMessages);
|
||||
|
||||
|
||||
@@ -43,4 +43,9 @@ public final class PaperUserManager extends PlatformUserManager<CarbonPlayerPape
|
||||
return new CarbonPlayerPaper(common);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updateTransientLoadedStatus(final CarbonPlayerPaper wrapped) {
|
||||
wrapped.carbonPlayerCommon().markTransientLoaded(wrapped.bukkitPlayer() == null);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user