Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package destinymod;
- import destinymod.MySQL.MySql;
- import destinymod.commands.commands;
- import destinymod.commands.reports;
- import org.bukkit.plugin.java.JavaPlugin;
- import java.util.ArrayList;
- import java.util.UUID;
- public final class main extends JavaPlugin {
- public MySql sql;
- private static main instance;
- public ArrayList<UUID> mods = new ArrayList<>();
- @Override
- public void onEnable() {
- sql = new MySql("jdbc:mysql://" + "127.0.0.1" + "moderation" + "root" + "");
- instance = this;
- new EventsManager().registers();
- getCommand("mod").setExecutor(new commands());
- getCommand("report").setExecutor(new reports());
- }
- @Override
- public void onDisable() {
- // Plugin shutdown logic
- }
- public static main getInstance(){
- return instance;
- }
- }
Add Comment
Please, Sign In to add comment