From 851230f58cbc354d43d0b999b2f03f4dc723bc39 Mon Sep 17 00:00:00 2001 From: Pepich Date: Thu, 2 Feb 2017 20:03:28 +0100 Subject: [PATCH] Added missing return statements --- src/com/redstoner/modules/loginsecurity/LoginSecurity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/redstoner/modules/loginsecurity/LoginSecurity.java b/src/com/redstoner/modules/loginsecurity/LoginSecurity.java index 3a3d3d0..890ad18 100644 --- a/src/com/redstoner/modules/loginsecurity/LoginSecurity.java +++ b/src/com/redstoner/modules/loginsecurity/LoginSecurity.java @@ -48,6 +48,7 @@ public class LoginSecurity implements Module, Listener Utils.sendErrorMessage(Bukkit.getConsoleSender(), null, "Could not load the LoginSecurity config file, disabling!"); enabled = false; + return; } try { @@ -62,6 +63,7 @@ public class LoginSecurity implements Module, Listener Utils.sendErrorMessage(Bukkit.getConsoleSender(), null, "Could not use the LoginSecurity config, disabling!"); enabled = false; + return; } loggingIn = new HashMap<>(); Bukkit.getServer().getPluginManager().registerEvents(new CancelledEventsHandler(this), Main.plugin);