fix: Fixed incorrect check in plugin initialization

This commit is contained in:
4drian3d 2022-07-27 16:45:33 +00:00
parent aead3e144c
commit ec93099691
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public class AuthMeVelocityPlugin {
@Subscribe @Subscribe
public void onProxyInitialization(ProxyInitializeEvent event) { public void onProxyInitialization(ProxyInitializeEvent event) {
if (this.reload()) { if (!this.reload()) {
logger.warn("Failed to load config.toml. Shutting down."); logger.warn("Failed to load config.toml. Shutting down.");
return; return;
} }

View File

@ -23,7 +23,7 @@ public class AuthmeCommand {
CommandSource source = cmd.getSource(); CommandSource source = cmd.getSource();
if (plugin.reload()) { if (plugin.reload()) {
plugin.sendInfoMessage(); plugin.sendInfoMessage();
source.sendMessage(Component.text("AuthmeVelocity was correctly reloaded", NamedTextColor.GREEN)); source.sendMessage(Component.text("AuthmeVelocity has been successfully reloaded", NamedTextColor.GREEN));
} else { } else {
source.sendMessage(Component.text( source.sendMessage(Component.text(
"There was an error while reloading the configuration. Check the server console", NamedTextColor.DARK_RED)); "There was an error while reloading the configuration. Check the server console", NamedTextColor.DARK_RED));