mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Log requested premium logins
This commit is contained in:
@ -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() {
|
||||||
|
@ -38,7 +38,7 @@ public class DelayedAuthHook implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hookFound) {
|
if (hookFound) {
|
||||||
plugin.setServerStarted();
|
plugin.markInitialized();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user