diff --git a/src/com/redstoner/modules/abot/Abot.java b/src/com/redstoner/modules/abot/Abot.java index 8103dcb..97688e8 100644 --- a/src/com/redstoner/modules/abot/Abot.java +++ b/src/com/redstoner/modules/abot/Abot.java @@ -19,7 +19,7 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Abot implements Module, Listener { private File answerFile = new File(Main.plugin.getDataFolder(), "abot.json"); @@ -64,10 +64,6 @@ public class Abot implements Module, Listener return true; } - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/adminchat/Adminchat.java b/src/com/redstoner/modules/adminchat/Adminchat.java index 7c5aaf4..9fb529a 100644 --- a/src/com/redstoner/modules/adminchat/Adminchat.java +++ b/src/com/redstoner/modules/adminchat/Adminchat.java @@ -24,7 +24,7 @@ import com.redstoner.modules.Module; * * @author Pepich */ @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Adminchat implements Module, Listener { private static final char defaultKey = ','; @@ -45,10 +45,6 @@ public class Adminchat implements Module, Listener return true; } - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/check/Check.java b/src/com/redstoner/modules/check/Check.java index a2ee75f..d6219b4 100644 --- a/src/com/redstoner/modules/check/Check.java +++ b/src/com/redstoner/modules/check/Check.java @@ -31,7 +31,7 @@ import com.redstoner.misc.mysql.elements.MysqlDatabase; import com.redstoner.misc.mysql.elements.MysqlTable; import com.redstoner.modules.Module; -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Check implements Module, Listener { MysqlTable table; @@ -239,8 +239,4 @@ public class Check implements Module, Listener "}"; } // @format - - @Override - public void onDisable() - {} } diff --git a/src/com/redstoner/modules/clear/Clear.java b/src/com/redstoner/modules/clear/Clear.java index 139a6e0..e50844c 100644 --- a/src/com/redstoner/modules/clear/Clear.java +++ b/src/com/redstoner/modules/clear/Clear.java @@ -9,19 +9,9 @@ import com.redstoner.annotations.Version; import com.redstoner.misc.Utils; import com.redstoner.modules.Module; -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Clear implements Module -{ - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - +{ @Command(hook = "clear") public boolean clearInventory(CommandSender sender) { diff --git a/src/com/redstoner/modules/damnspam/DamnSpam.java b/src/com/redstoner/modules/damnspam/DamnSpam.java index 4d59484..8b9d0fa 100644 --- a/src/com/redstoner/modules/damnspam/DamnSpam.java +++ b/src/com/redstoner/modules/damnspam/DamnSpam.java @@ -37,7 +37,7 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class DamnSpam implements Module, Listener { File configFile = new File(Main.plugin.getDataFolder(), "DamnSpam.json"); @@ -343,10 +343,6 @@ public class DamnSpam implements Module, Listener } } - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/illumination/Illumination.java b/src/com/redstoner/modules/illumination/Illumination.java index 20e2926..b18276c 100644 --- a/src/com/redstoner/modules/illumination/Illumination.java +++ b/src/com/redstoner/modules/illumination/Illumination.java @@ -10,7 +10,7 @@ import com.redstoner.annotations.Version; import com.redstoner.misc.Utils; import com.redstoner.modules.Module; -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Illumination implements Module { PotionEffect effect = new PotionEffect(PotionEffectType.NIGHT_VISION, Integer.MAX_VALUE, 0, false, false); @@ -31,16 +31,6 @@ public class Illumination implements Module } } - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/imout/Imout.java b/src/com/redstoner/modules/imout/Imout.java index c5f1200..463800f 100644 --- a/src/com/redstoner/modules/imout/Imout.java +++ b/src/com/redstoner/modules/imout/Imout.java @@ -11,7 +11,7 @@ import com.redstoner.annotations.Version; import com.redstoner.misc.Utils; import com.redstoner.modules.Module; -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Imout implements Module { List imout_toggle_list = new ArrayList(); @@ -42,16 +42,6 @@ public class Imout implements Module Utils.broadcast(symbol, " §7" + name, null); } - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/lagchunks/LagChunks.java b/src/com/redstoner/modules/lagchunks/LagChunks.java index b0de6a6..abbf048 100644 --- a/src/com/redstoner/modules/lagchunks/LagChunks.java +++ b/src/com/redstoner/modules/lagchunks/LagChunks.java @@ -16,7 +16,7 @@ import com.redstoner.annotations.Version; import com.redstoner.misc.Utils; import com.redstoner.modules.Module; -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class LagChunks implements Module { private List laggyChunks = new ArrayList(); @@ -77,16 +77,6 @@ public class LagChunks implements Module } } - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/loginsecurity/LoginSecurity.java b/src/com/redstoner/modules/loginsecurity/LoginSecurity.java index 38513ee..38129c5 100644 --- a/src/com/redstoner/modules/loginsecurity/LoginSecurity.java +++ b/src/com/redstoner/modules/loginsecurity/LoginSecurity.java @@ -34,7 +34,7 @@ import com.redstoner.misc.mysql.types.text.VarChar; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class LoginSecurity implements Module, Listener { protected static Map loggingIn; @@ -260,10 +260,6 @@ public class LoginSecurity implements Module, Listener return table.insert(player.getUniqueId().toString(), toInsert); } - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/misc/Misc.java b/src/com/redstoner/modules/misc/Misc.java index 3b84848..cc9d89c 100644 --- a/src/com/redstoner/modules/misc/Misc.java +++ b/src/com/redstoner/modules/misc/Misc.java @@ -18,21 +18,11 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 1, compatible = 2) +@Version(major = 2, minor = 0, revision = 2, compatible = 2) public class Misc implements Module, Listener { private final String[] sudoBlacklist = new String[] {".*:?esudo", ".*:?sudo", ".*:?script.*", ".*:?stop"}; - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - @EventHandler public void onFirstJoin(PlayerJoinEvent event) { diff --git a/src/com/redstoner/modules/motd/Motd.java b/src/com/redstoner/modules/motd/Motd.java index 0ce1d21..95e578f 100644 --- a/src/com/redstoner/modules/motd/Motd.java +++ b/src/com/redstoner/modules/motd/Motd.java @@ -12,7 +12,7 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Motd implements Module { private String default_motd, motd; @@ -48,10 +48,6 @@ public class Motd implements Module return true; } - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/nametags/Nametags.java b/src/com/redstoner/modules/nametags/Nametags.java index eaa0f3c..8733df1 100644 --- a/src/com/redstoner/modules/nametags/Nametags.java +++ b/src/com/redstoner/modules/nametags/Nametags.java @@ -16,18 +16,9 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Nametags implements Module, Listener { - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} @EventHandler public void onPlayerJoin(PlayerJoinEvent event) diff --git a/src/com/redstoner/modules/naming/Naming.java b/src/com/redstoner/modules/naming/Naming.java index 715d855..c117b4b 100644 --- a/src/com/redstoner/modules/naming/Naming.java +++ b/src/com/redstoner/modules/naming/Naming.java @@ -22,7 +22,7 @@ import net.minecraft.server.v1_11_R1.EntityHuman; import net.minecraft.server.v1_11_R1.EntityPlayer; import net.minecraft.server.v1_11_R1.PacketPlayOutOpenWindow; -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Naming implements Module { @Command(hook = "anvil") @@ -87,16 +87,6 @@ public class Naming implements Module } } - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/pmtoggle/Pmtoggle.java b/src/com/redstoner/modules/pmtoggle/Pmtoggle.java index e5e983f..c5df720 100644 --- a/src/com/redstoner/modules/pmtoggle/Pmtoggle.java +++ b/src/com/redstoner/modules/pmtoggle/Pmtoggle.java @@ -19,21 +19,11 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Pmtoggle implements Module, Listener { HashMap toggles = new HashMap(); - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - @Command(hook = "pmtoggle_off", async = AsyncType.ALWAYS) public boolean pmtoggle_off(CommandSender sender) { diff --git a/src/com/redstoner/modules/scriptutils/Scriptutils.java b/src/com/redstoner/modules/scriptutils/Scriptutils.java index b1dc937..9818817 100644 --- a/src/com/redstoner/modules/scriptutils/Scriptutils.java +++ b/src/com/redstoner/modules/scriptutils/Scriptutils.java @@ -8,7 +8,7 @@ import com.redstoner.annotations.Version; import com.redstoner.misc.Utils; import com.redstoner.modules.Module; -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Scriptutils implements Module { /** Prints Bukkit restart message @@ -172,16 +172,6 @@ public class Scriptutils implements Module Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "stop"); } - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/skullclick/SkullClick.java b/src/com/redstoner/modules/skullclick/SkullClick.java index 5608d29..d4bddb2 100644 --- a/src/com/redstoner/modules/skullclick/SkullClick.java +++ b/src/com/redstoner/modules/skullclick/SkullClick.java @@ -12,7 +12,7 @@ import com.redstoner.annotations.Version; import com.redstoner.misc.Utils; import com.redstoner.modules.Module; -@Version(major = 1, minor = 0, revision = 0, compatible = 1) +@Version(major = 1, minor = 0, revision = 1, compatible = 1) @AutoRegisterListener public class SkullClick implements Module, Listener { @@ -52,16 +52,6 @@ public class SkullClick implements Module, Listener } } - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - @Override public String getCommandString() { diff --git a/src/com/redstoner/modules/vanish/Vanish.java b/src/com/redstoner/modules/vanish/Vanish.java index 52513db..d7eb372 100644 --- a/src/com/redstoner/modules/vanish/Vanish.java +++ b/src/com/redstoner/modules/vanish/Vanish.java @@ -21,7 +21,7 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 2, compatible = 2) +@Version(major = 2, minor = 0, revision = 3, compatible = 2) public class Vanish implements Module, Listener { private ArrayList vanished = new ArrayList(); @@ -209,16 +209,6 @@ public class Vanish implements Module, Listener p.showPlayer(player); } - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/warn/Warn.java b/src/com/redstoner/modules/warn/Warn.java index a62dcb6..53202a1 100644 --- a/src/com/redstoner/modules/warn/Warn.java +++ b/src/com/redstoner/modules/warn/Warn.java @@ -8,7 +8,7 @@ import com.redstoner.annotations.Version; import com.redstoner.misc.Utils; import com.redstoner.modules.Module; -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Warn implements Module { @Command(hook = "warn") @@ -25,16 +25,6 @@ public class Warn implements Module Utils.broadcast(null, "§2Possible lag incoming! - §9" + name, null); } - @Override - public boolean onEnable() - { - return true; - } - - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString() diff --git a/src/com/redstoner/modules/webtoken/WebToken.java b/src/com/redstoner/modules/webtoken/WebToken.java index 239318c..0418a38 100644 --- a/src/com/redstoner/modules/webtoken/WebToken.java +++ b/src/com/redstoner/modules/webtoken/WebToken.java @@ -22,7 +22,7 @@ import com.redstoner.misc.mysql.elements.MysqlDatabase; import com.redstoner.misc.mysql.elements.MysqlTable; import com.redstoner.modules.Module; -@Version(major = 2, minor = 0, revision = 2, compatible = 2) +@Version(major = 2, minor = 0, revision = 3, compatible = 2) public class WebToken implements Module { private static final int TOKEN_LENGTH = 6; @@ -196,10 +196,6 @@ public class WebToken implements Module } } - @Override - public void onDisable() - {} - // @noformat @Override public String getCommandString()