|
|
@@ -9,9 +9,12 @@ import net.t2code.opsecurity.events.Events;
|
|
|
|
import net.t2code.opsecurity.events.OpCommand;
|
|
|
|
import net.t2code.opsecurity.events.OpCommand;
|
|
|
|
import net.t2code.opsecurity.events.PlugManCommand;
|
|
|
|
import net.t2code.opsecurity.events.PlugManCommand;
|
|
|
|
import net.t2code.opsecurity.check.Timer;
|
|
|
|
import net.t2code.opsecurity.check.Timer;
|
|
|
|
|
|
|
|
import net.t2code.t2codelib.SPIGOT.api.messages.T2Csend;
|
|
|
|
import net.t2code.t2codelib.SPIGOT.api.messages.T2Ctemplate;
|
|
|
|
import net.t2code.t2codelib.SPIGOT.api.messages.T2Ctemplate;
|
|
|
|
import net.t2code.t2codelib.SPIGOT.api.register.T2Cregister;
|
|
|
|
import net.t2code.t2codelib.SPIGOT.api.register.T2Cregister;
|
|
|
|
import net.t2code.t2codelib.SPIGOT.api.update.T2CupdateAPI;
|
|
|
|
import net.t2code.t2codelib.SPIGOT.api.update.T2CupdateAPI;
|
|
|
|
|
|
|
|
import net.t2code.t2codelib.SPIGOT.system.config.config.SelectLibConfig;
|
|
|
|
|
|
|
|
import org.bukkit.Bukkit;
|
|
|
|
import org.checkerframework.checker.units.qual.C;
|
|
|
|
import org.checkerframework.checker.units.qual.C;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
@@ -38,7 +41,10 @@ public class Load {
|
|
|
|
T2Cregister.listener(new OpCommand(), plugin);
|
|
|
|
T2Cregister.listener(new OpCommand(), plugin);
|
|
|
|
T2Cregister.listener(new PlugManCommand(), plugin);
|
|
|
|
T2Cregister.listener(new PlugManCommand(), plugin);
|
|
|
|
T2Cregister.listener(new Events(), plugin);
|
|
|
|
T2Cregister.listener(new Events(), plugin);
|
|
|
|
|
|
|
|
if (SelectLibConfig.getBungee()) {
|
|
|
|
|
|
|
|
Bukkit.getMessenger().registerOutgoingPluginChannel(plugin, "t2c:opsec");
|
|
|
|
|
|
|
|
T2Csend.debug(plugin, "registerIncomingPluginChannel §et2c:opsec");
|
|
|
|
|
|
|
|
}
|
|
|
|
Timer.refreshTimer();
|
|
|
|
Timer.refreshTimer();
|
|
|
|
Permissions.register();
|
|
|
|
Permissions.register();
|
|
|
|
T2CupdateAPI.onUpdateCheck(plugin, Util.getPrefix(),Util.getGit(),Util.getSpigotID(),Util.getDiscord(), Config.updateCheckOnJoin.valueBoolean,
|
|
|
|
T2CupdateAPI.onUpdateCheck(plugin, Util.getPrefix(),Util.getGit(),Util.getSpigotID(),Util.getDiscord(), Config.updateCheckOnJoin.valueBoolean,
|
|
|
|