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

View File

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

View File

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

View File

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