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