Small Code Changes
This commit is contained in:
@@ -15,13 +15,6 @@ public final class BMain extends Plugin {
|
||||
public static String version;
|
||||
public static String autor;
|
||||
|
||||
public static String prefix = Util.Prefix;
|
||||
public static Integer spigotID = Util.SpigotID;
|
||||
public static Integer bstatsID = Util.BstatsID;
|
||||
public static String spigot = Util.Spigot;
|
||||
public static String discord = Util.Discord;
|
||||
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
// Plugin startup logic
|
||||
@@ -30,18 +23,18 @@ public final class BMain extends Plugin {
|
||||
autor = plugin.getDescription().getAuthor();
|
||||
if (ProxyServer.getInstance().getPluginManager().getPlugin("T2CodeLib") == null) {
|
||||
plugin.getLogger().log(Level.SEVERE, "Plugin can not be loaded!");
|
||||
ProxyServer.getInstance().getConsole().sendMessage(prefix + " §eT2CodeLib §4could not be found. Please download it here: " +
|
||||
ProxyServer.getInstance().getConsole().sendMessage(Util.getPrefix() + " §eT2CodeLib §4could not be found. Please download it here: " +
|
||||
"§6https://www.spigotmc.org/resources/t2codelib.96388/ §4to be able to use this plugin.");
|
||||
getProxy().getPluginManager().getPlugin(plugin.getDescription().getName()).onDisable();
|
||||
return;
|
||||
}
|
||||
BLoad.onLoad(plugin, prefix, autor, version, spigot, discord, spigotID, bstatsID);
|
||||
BLoad.onLoad(plugin, Util.getPrefix(), autor, version, Util.getSpigot(), Util.getDiscord(), Util.getSpigotID(), Util.getBstatsID());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
// Plugin shutdown logic
|
||||
if (ProxyServer.getInstance().getPluginManager().getPlugin("T2CodeLib") == null) return;
|
||||
BT2CodeTemplate.onDisable(prefix, autor, version, spigot, discord);
|
||||
BT2CodeTemplate.onDisable(Util.getPrefix(), autor, version, Util.getSpigot(), Util.getDiscord());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user