Fix server not fully started message on ProtocolSupport or Bungee

(Fixes #15)
This commit is contained in:
games647
2016-05-23 08:46:18 +02:00
parent c4c043e1c5
commit dcd06ad613
3 changed files with 4 additions and 2 deletions

View File

@ -104,6 +104,7 @@ public class FastLoginBukkit extends JavaPlugin {
boolean hookFound = registerHooks();
if (bungeeCord) {
setServerStarted();
getLogger().info("BungeeCord setting detected. No auth plugin is required");
} else if (!hookFound) {
getLogger().warning("No auth plugin were found by this plugin "

View File

@ -25,6 +25,7 @@ public class ProtocolSupportListener implements Listener {
@EventHandler(ignoreCancelled = true)
public void onLoginStart(PlayerLoginStartEvent loginStartEvent) {
plugin.setServerStarted();
if (loginStartEvent.isLoginDenied()) {
return;
}

View File

@ -32,9 +32,9 @@ commands:
usage: /<command> [player]
permission: ${project.artifactId}.command.premium
unpremium:
cracked:
description: 'Label the invoker or the player specified as cracked if he was marked premium before'
aliases: [cracked]
aliases: [unpremium]
usage: /<command> [player]
permission: ${project.artifactId}.command.unpremium