fix: Fixed incorrect check in plugin initialization
This commit is contained in:
parent
aead3e144c
commit
ec93099691
@ -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;
|
||||
}
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user