T2CodeLib load change
This commit is contained in:
parent
a85fd20f93
commit
d95de86b58
@ -9,6 +9,7 @@ import net.t2code.t2codelib.SPIGOT.api.messages.T2Ctemplate;
|
||||
import net.t2code.t2codelib.SPIGOT.api.minecraftVersion.T2CmcVersion;
|
||||
import net.t2code.t2codelib.SPIGOT.system.T2CodeLibMain;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.io.File;
|
||||
@ -37,12 +38,6 @@ public final class Main extends JavaPlugin {
|
||||
public static ArrayList<String> allSubAliases = new ArrayList<>();
|
||||
public static ArrayList<String> allForSubAliases = new ArrayList<>();
|
||||
|
||||
// private BukkitCommandWrap bukkitCommandWrap = null;
|
||||
//
|
||||
// public BukkitCommandWrap getBukkitCommandWrap() {
|
||||
// return this.bukkitCommandWrap;
|
||||
// }
|
||||
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
@ -50,23 +45,9 @@ public final class Main extends JavaPlugin {
|
||||
plugin = this;
|
||||
autor = plugin.getDescription().getAuthors();
|
||||
version = plugin.getDescription().getVersion();
|
||||
if (!Bukkit.getPluginManager().isPluginEnabled("T2CodeLib")) {
|
||||
getLogger().severe("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
|
||||
getLogger().severe("+ T2CodeLib ist nicht im plugins Ordner, +");
|
||||
getLogger().severe("+ daher wurde es aus der eigenen Library geladen! +");
|
||||
getLogger().severe("+ Es wird empfohlen die T2CodeLib als eigenes Plugin zu laden, +");
|
||||
getLogger().severe("+ um keine Komplikationen mit anderen Plugins von T2Code zu bekommen! +");
|
||||
getLogger().severe("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
|
||||
new T2CodeLibMain().onEnable();
|
||||
}
|
||||
|
||||
// if (pluginNotFound("T2CodeLib", 96388, Util.getRequiredT2CodeLibVersion())) return; todo
|
||||
// try {
|
||||
// Class.forName("com.mojang.brigadier.CommandDispatcher");
|
||||
// this.bukkitCommandWrap = new BukkitCommandWrap();
|
||||
// } catch (ClassNotFoundException | NoClassDefFoundError e) {
|
||||
// this.bukkitCommandWrap = new BukkitCommandWrap_Useless();
|
||||
// }
|
||||
if (pluginNotFound("T2CodeLib", 96388, Util.getRequiredT2CodeLibVersion())) return;
|
||||
|
||||
if (T2CmcVersion.isMc1_13()) {
|
||||
guiCode = "";
|
||||
} else guiCode = "§6§8§9§r";
|
||||
|
Loading…
Reference in New Issue
Block a user