mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 02:37:34 +02:00
Fix server not fully started message on ProtocolSupport or Bungee
(Fixes #15)
This commit is contained in:
@ -104,6 +104,7 @@ public class FastLoginBukkit extends JavaPlugin {
|
|||||||
|
|
||||||
boolean hookFound = registerHooks();
|
boolean hookFound = registerHooks();
|
||||||
if (bungeeCord) {
|
if (bungeeCord) {
|
||||||
|
setServerStarted();
|
||||||
getLogger().info("BungeeCord setting detected. No auth plugin is required");
|
getLogger().info("BungeeCord setting detected. No auth plugin is required");
|
||||||
} else if (!hookFound) {
|
} else if (!hookFound) {
|
||||||
getLogger().warning("No auth plugin were found by this plugin "
|
getLogger().warning("No auth plugin were found by this plugin "
|
||||||
|
@ -25,6 +25,7 @@ public class ProtocolSupportListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler(ignoreCancelled = true)
|
||||||
public void onLoginStart(PlayerLoginStartEvent loginStartEvent) {
|
public void onLoginStart(PlayerLoginStartEvent loginStartEvent) {
|
||||||
|
plugin.setServerStarted();
|
||||||
if (loginStartEvent.isLoginDenied()) {
|
if (loginStartEvent.isLoginDenied()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -32,9 +32,9 @@ commands:
|
|||||||
usage: /<command> [player]
|
usage: /<command> [player]
|
||||||
permission: ${project.artifactId}.command.premium
|
permission: ${project.artifactId}.command.premium
|
||||||
|
|
||||||
unpremium:
|
cracked:
|
||||||
description: 'Label the invoker or the player specified as cracked if he was marked premium before'
|
description: 'Label the invoker or the player specified as cracked if he was marked premium before'
|
||||||
aliases: [cracked]
|
aliases: [unpremium]
|
||||||
usage: /<command> [player]
|
usage: /<command> [player]
|
||||||
permission: ${project.artifactId}.command.unpremium
|
permission: ${project.artifactId}.command.unpremium
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user