0

Removed onEnable and/or onDisable

This commit is contained in:
minenash 2017-03-02 18:36:08 -05:00
parent a0940ba9e4
commit f766925bde
19 changed files with 20 additions and 167 deletions

View File

@ -19,7 +19,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @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 public class Abot implements Module, Listener
{ {
private File answerFile = new File(Main.plugin.getDataFolder(), "abot.json"); private File answerFile = new File(Main.plugin.getDataFolder(), "abot.json");
@ -64,10 +64,6 @@ public class Abot implements Module, Listener
return true; return true;
} }
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -24,7 +24,7 @@ import com.redstoner.modules.Module;
* *
* @author Pepich */ * @author Pepich */
@AutoRegisterListener @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 public class Adminchat implements Module, Listener
{ {
private static final char defaultKey = ','; private static final char defaultKey = ',';
@ -45,10 +45,6 @@ public class Adminchat implements Module, Listener
return true; return true;
} }
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -31,7 +31,7 @@ import com.redstoner.misc.mysql.elements.MysqlDatabase;
import com.redstoner.misc.mysql.elements.MysqlTable; import com.redstoner.misc.mysql.elements.MysqlTable;
import com.redstoner.modules.Module; 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 public class Check implements Module, Listener
{ {
MysqlTable table; MysqlTable table;
@ -239,8 +239,4 @@ public class Check implements Module, Listener
"}"; "}";
} }
// @format // @format
@Override
public void onDisable()
{}
} }

View File

@ -9,19 +9,9 @@ import com.redstoner.annotations.Version;
import com.redstoner.misc.Utils; import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; 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 public class Clear implements Module
{ {
@Override
public boolean onEnable()
{
return true;
}
@Override
public void onDisable()
{}
@Command(hook = "clear") @Command(hook = "clear")
public boolean clearInventory(CommandSender sender) public boolean clearInventory(CommandSender sender)
{ {

View File

@ -37,7 +37,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @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 public class DamnSpam implements Module, Listener
{ {
File configFile = new File(Main.plugin.getDataFolder(), "DamnSpam.json"); File configFile = new File(Main.plugin.getDataFolder(), "DamnSpam.json");
@ -343,10 +343,6 @@ public class DamnSpam implements Module, Listener
} }
} }
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -10,7 +10,7 @@ import com.redstoner.annotations.Version;
import com.redstoner.misc.Utils; import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; 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 public class Illumination implements Module
{ {
PotionEffect effect = new PotionEffect(PotionEffectType.NIGHT_VISION, Integer.MAX_VALUE, 0, false, false); 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 // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -11,7 +11,7 @@ import com.redstoner.annotations.Version;
import com.redstoner.misc.Utils; import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; 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 public class Imout implements Module
{ {
List<String> imout_toggle_list = new ArrayList<String>(); List<String> imout_toggle_list = new ArrayList<String>();
@ -42,16 +42,6 @@ public class Imout implements Module
Utils.broadcast(symbol, " §7" + name, null); Utils.broadcast(symbol, " §7" + name, null);
} }
@Override
public boolean onEnable()
{
return true;
}
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -16,7 +16,7 @@ import com.redstoner.annotations.Version;
import com.redstoner.misc.Utils; import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; 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 public class LagChunks implements Module
{ {
private List<LaggyChunk> laggyChunks = new ArrayList<LaggyChunk>(); private List<LaggyChunk> laggyChunks = new ArrayList<LaggyChunk>();
@ -77,16 +77,6 @@ public class LagChunks implements Module
} }
} }
@Override
public boolean onEnable()
{
return true;
}
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -34,7 +34,7 @@ import com.redstoner.misc.mysql.types.text.VarChar;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @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 public class LoginSecurity implements Module, Listener
{ {
protected static Map<UUID, Location> loggingIn; protected static Map<UUID, Location> loggingIn;
@ -260,10 +260,6 @@ public class LoginSecurity implements Module, Listener
return table.insert(player.getUniqueId().toString(), toInsert); return table.insert(player.getUniqueId().toString(), toInsert);
} }
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -18,21 +18,11 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @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 public class Misc implements Module, Listener
{ {
private final String[] sudoBlacklist = new String[] {".*:?esudo", ".*:?sudo", ".*:?script.*", ".*:?stop"}; private final String[] sudoBlacklist = new String[] {".*:?esudo", ".*:?sudo", ".*:?script.*", ".*:?stop"};
@Override
public boolean onEnable()
{
return true;
}
@Override
public void onDisable()
{}
@EventHandler @EventHandler
public void onFirstJoin(PlayerJoinEvent event) public void onFirstJoin(PlayerJoinEvent event)
{ {

View File

@ -12,7 +12,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @AutoRegisterListener
@Version(major = 2, minor = 0, revision = 0, compatible = 2) @Version(major = 2, minor = 0, revision = 1, compatible = 2)
public class Motd implements Module public class Motd implements Module
{ {
private String default_motd, motd; private String default_motd, motd;
@ -48,10 +48,6 @@ public class Motd implements Module
return true; return true;
} }
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -16,18 +16,9 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @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 public class Nametags implements Module, Listener
{ {
@Override
public boolean onEnable()
{
return true;
}
@Override
public void onDisable()
{}
@EventHandler @EventHandler
public void onPlayerJoin(PlayerJoinEvent event) public void onPlayerJoin(PlayerJoinEvent event)

View File

@ -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.EntityPlayer;
import net.minecraft.server.v1_11_R1.PacketPlayOutOpenWindow; 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 public class Naming implements Module
{ {
@Command(hook = "anvil") @Command(hook = "anvil")
@ -87,16 +87,6 @@ public class Naming implements Module
} }
} }
@Override
public boolean onEnable()
{
return true;
}
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -19,21 +19,11 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @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 public class Pmtoggle implements Module, Listener
{ {
HashMap<Player, String> toggles = new HashMap<Player, String>(); HashMap<Player, String> toggles = new HashMap<Player, String>();
@Override
public boolean onEnable()
{
return true;
}
@Override
public void onDisable()
{}
@Command(hook = "pmtoggle_off", async = AsyncType.ALWAYS) @Command(hook = "pmtoggle_off", async = AsyncType.ALWAYS)
public boolean pmtoggle_off(CommandSender sender) public boolean pmtoggle_off(CommandSender sender)
{ {

View File

@ -8,7 +8,7 @@ import com.redstoner.annotations.Version;
import com.redstoner.misc.Utils; import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; 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 public class Scriptutils implements Module
{ {
/** Prints Bukkit restart message /** Prints Bukkit restart message
@ -172,16 +172,6 @@ public class Scriptutils implements Module
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "stop"); Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "stop");
} }
@Override
public boolean onEnable()
{
return true;
}
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -12,7 +12,7 @@ import com.redstoner.annotations.Version;
import com.redstoner.misc.Utils; import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@Version(major = 1, minor = 0, revision = 0, compatible = 1) @Version(major = 1, minor = 0, revision = 1, compatible = 1)
@AutoRegisterListener @AutoRegisterListener
public class SkullClick implements Module, Listener 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 @Override
public String getCommandString() public String getCommandString()
{ {

View File

@ -21,7 +21,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; import com.redstoner.modules.Module;
@AutoRegisterListener @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 public class Vanish implements Module, Listener
{ {
private ArrayList<UUID> vanished = new ArrayList<UUID>(); private ArrayList<UUID> vanished = new ArrayList<UUID>();
@ -209,16 +209,6 @@ public class Vanish implements Module, Listener
p.showPlayer(player); p.showPlayer(player);
} }
@Override
public boolean onEnable()
{
return true;
}
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -8,7 +8,7 @@ import com.redstoner.annotations.Version;
import com.redstoner.misc.Utils; import com.redstoner.misc.Utils;
import com.redstoner.modules.Module; 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 public class Warn implements Module
{ {
@Command(hook = "warn") @Command(hook = "warn")
@ -25,16 +25,6 @@ public class Warn implements Module
Utils.broadcast(null, "§2Possible lag incoming! - §9" + name, null); Utils.broadcast(null, "§2Possible lag incoming! - §9" + name, null);
} }
@Override
public boolean onEnable()
{
return true;
}
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()

View File

@ -22,7 +22,7 @@ import com.redstoner.misc.mysql.elements.MysqlDatabase;
import com.redstoner.misc.mysql.elements.MysqlTable; import com.redstoner.misc.mysql.elements.MysqlTable;
import com.redstoner.modules.Module; 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 public class WebToken implements Module
{ {
private static final int TOKEN_LENGTH = 6; private static final int TOKEN_LENGTH = 6;
@ -196,10 +196,6 @@ public class WebToken implements Module
} }
} }
@Override
public void onDisable()
{}
// @noformat // @noformat
@Override @Override
public String getCommandString() public String getCommandString()