From ec93099691be398b5feba0c3813624a652783406 Mon Sep 17 00:00:00 2001 From: 4drian3d Date: Wed, 27 Jul 2022 16:45:33 +0000 Subject: [PATCH] fix: Fixed incorrect check in plugin initialization --- .../com/glyart/authmevelocity/proxy/AuthMeVelocityPlugin.java | 2 +- .../com/glyart/authmevelocity/proxy/commands/AuthmeCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/glyart/authmevelocity/proxy/AuthMeVelocityPlugin.java b/proxy/src/main/java/com/glyart/authmevelocity/proxy/AuthMeVelocityPlugin.java index 0c8423c..bc92f02 100644 --- a/proxy/src/main/java/com/glyart/authmevelocity/proxy/AuthMeVelocityPlugin.java +++ b/proxy/src/main/java/com/glyart/authmevelocity/proxy/AuthMeVelocityPlugin.java @@ -53,7 +53,7 @@ public class AuthMeVelocityPlugin { @Subscribe public void onProxyInitialization(ProxyInitializeEvent event) { - if (this.reload()) { + if (!this.reload()) { logger.warn("Failed to load config.toml. Shutting down."); return; } diff --git a/proxy/src/main/java/com/glyart/authmevelocity/proxy/commands/AuthmeCommand.java b/proxy/src/main/java/com/glyart/authmevelocity/proxy/commands/AuthmeCommand.java index 17d0ae4..106cf6e 100644 --- a/proxy/src/main/java/com/glyart/authmevelocity/proxy/commands/AuthmeCommand.java +++ b/proxy/src/main/java/com/glyart/authmevelocity/proxy/commands/AuthmeCommand.java @@ -23,7 +23,7 @@ public class AuthmeCommand { CommandSource source = cmd.getSource(); if (plugin.reload()) { plugin.sendInfoMessage(); - source.sendMessage(Component.text("AuthmeVelocity was correctly reloaded", NamedTextColor.GREEN)); + source.sendMessage(Component.text("AuthmeVelocity has been successfully reloaded", NamedTextColor.GREEN)); } else { source.sendMessage(Component.text( "There was an error while reloading the configuration. Check the server console", NamedTextColor.DARK_RED));