Log requested premium logins

This commit is contained in:
games647
2020-05-20 19:50:22 +02:00
parent 49df461643
commit 103a8320ec
4 changed files with 6 additions and 6 deletions

View File

@ -62,7 +62,7 @@ public class FastLoginBukkit extends JavaPlugin implements PlatformPlugin<Comman
PluginManager pluginManager = getServer().getPluginManager();
if (bungeeManager.isEnabled()) {
setServerStarted();
markInitialized();
} else {
if (!core.setupDatabase()) {
setEnabled(false);
@ -164,10 +164,8 @@ public class FastLoginBukkit extends JavaPlugin implements PlatformPlugin<Comman
return serverStarted;
}
public void setServerStarted() {
if (!this.serverStarted) {
this.serverStarted = true;
}
public void markInitialized() {
this.serverStarted = true;
}
public BungeeManager getBungeeManager() {

View File

@ -38,7 +38,7 @@ public class DelayedAuthHook implements Runnable {
}
if (hookFound) {
plugin.setServerStarted();
plugin.markInitialized();
}
}

View File

@ -18,6 +18,7 @@ softdepend:
# We depend either ProtocolLib or ProtocolSupport
- ProtocolSupport
- ProtocolLib
# Premium variable
- PlaceholderAPI
# Auth plugins
- AuthMe

View File

@ -35,6 +35,7 @@ public abstract class JoinManagement<P extends C, C, S extends LoginSource> {
try {
if (profile.isSaved()) {
if (profile.isPremium()) {
core.getPlugin().getLog().info("Requesting premium login for registered player: {}", username);
requestPremiumLogin(source, profile, username, true);
} else {
startCrackedSession(source, profile, username);