Added missing return statements
This commit is contained in:
parent
2562896d26
commit
851230f58c
@ -48,6 +48,7 @@ public class LoginSecurity implements Module, Listener
|
|||||||
Utils.sendErrorMessage(Bukkit.getConsoleSender(), null,
|
Utils.sendErrorMessage(Bukkit.getConsoleSender(), null,
|
||||||
"Could not load the LoginSecurity config file, disabling!");
|
"Could not load the LoginSecurity config file, disabling!");
|
||||||
enabled = false;
|
enabled = false;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -62,6 +63,7 @@ public class LoginSecurity implements Module, Listener
|
|||||||
Utils.sendErrorMessage(Bukkit.getConsoleSender(), null,
|
Utils.sendErrorMessage(Bukkit.getConsoleSender(), null,
|
||||||
"Could not use the LoginSecurity config, disabling!");
|
"Could not use the LoginSecurity config, disabling!");
|
||||||
enabled = false;
|
enabled = false;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
loggingIn = new HashMap<>();
|
loggingIn = new HashMap<>();
|
||||||
Bukkit.getServer().getPluginManager().registerEvents(new CancelledEventsHandler(this), Main.plugin);
|
Bukkit.getServer().getPluginManager().registerEvents(new CancelledEventsHandler(this), Main.plugin);
|
||||||
|
Reference in New Issue
Block a user