68 lines
2.1 KiB
Java
68 lines
2.1 KiB
Java
// This claas was created by JaTiTV
|
|
|
|
package de.jatitv.opsecurity.system;
|
|
|
|
import de.jatitv.opsecurity.config.config.ConfigConvert;
|
|
import de.jatitv.opsecurity.config.config.CreateConfig;
|
|
import de.jatitv.opsecurity.config.languages.LanguagesCreate;
|
|
import de.jatitv.opsecurity.config.languages.SelectMessages;
|
|
import de.jatitv.opsecurity.config.config.SelectConfig;
|
|
import de.jatitv.opsecurity.listener.Timer;
|
|
import de.jatitv.opsecurity.util.send;
|
|
|
|
import java.util.List;
|
|
|
|
public class Load {
|
|
public static void onLoad(String Prefix, List Autor, String Version, String Spigot, String Discord) {
|
|
send.console(Prefix + " §2-------------- §2OP§4Security §2--------------");
|
|
send.console(Prefix + " §2Autor: §6JaTiTV");
|
|
send.console(Prefix + " §2Version: §6" + Version);
|
|
send.console(Prefix + " §2Spigot: §6" + Spigot);
|
|
send.console(Prefix + " §2Discord: §6" + Discord);
|
|
send.console(Prefix + " §2");
|
|
send.console(Prefix + " §4Plugin load...");
|
|
send.console(Prefix + " §8-------------------------------");
|
|
loadReload();
|
|
send.console(Prefix + " §8-------------------------------");
|
|
send.console(Prefix + " §2Plugin loaded successfully.");
|
|
send.console(Prefix + " §2-----------------------------------------");
|
|
}
|
|
|
|
public static void loadReload() {
|
|
|
|
ConfigConvert.convert();
|
|
|
|
try {
|
|
CreateConfig.configCreate();
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
try {
|
|
SelectConfig.onSelect();
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
try {
|
|
LanguagesCreate.messagesCreate();
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
try {
|
|
SelectMessages.selectCreate(Main.Prefix);
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
try {
|
|
SelectConfig.sound();
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
|
|
try {
|
|
Timer.RefreshTimer();
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|