parent
2d6b6fa277
commit
02432a8e5c
@ -44,16 +44,16 @@ public class T2Csend {
|
|||||||
public static void debug(Plugin plugin, String msg, Integer stage) {
|
public static void debug(Plugin plugin, String msg, Integer stage) {
|
||||||
// if (!new File(Main.getPath(), "config.yml").exists()) return;
|
// if (!new File(Main.getPath(), "config.yml").exists()) return;
|
||||||
if (stage == null) {
|
if (stage == null) {
|
||||||
if (plugin.getConfig().getBoolean("Plugin.Debug") || plugin.getConfig().getBoolean("plugin.debug") || plugin.getConfig().getBoolean("Debug") || plugin.getConfig().getBoolean("debug"))
|
if (plugin.getConfig().getBoolean("Plugin.Debug"))
|
||||||
Bukkit.getConsoleSender().sendMessage(plugin.getDescription().getPrefix() + " §5DEBUG: §6" + msg);
|
Bukkit.getConsoleSender().sendMessage(plugin.getDescription().getPrefix() + " §5DEBUG: §6" + msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((plugin.getConfig().getInt("Plugin.Debug") >= stage) || (plugin.getConfig().getInt("plugin.debug") >= stage) || (plugin.getConfig().getInt("Debug") >= stage) || (plugin.getConfig().getInt("debug") >= stage))
|
if (plugin.getConfig().getInt("Plugin.Debug") >= stage)
|
||||||
Bukkit.getConsoleSender().sendMessage(plugin.getDescription().getPrefix() + " §5DEBUG: §6" + msg);
|
Bukkit.getConsoleSender().sendMessage(plugin.getDescription().getPrefix() + " §5DEBUG: §6" + msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void debugmsg(Plugin plugin, String msg) {
|
public static void debugmsg(Plugin plugin, String msg) {
|
||||||
warning(plugin, "");
|
warning(plugin,"");
|
||||||
Bukkit.getConsoleSender().sendMessage("§e[" + plugin.getDescription().getPrefix() + "] §5DEBUG-MSG: §6" + msg);
|
Bukkit.getConsoleSender().sendMessage("§e[" + plugin.getDescription().getPrefix() + "] §5DEBUG-MSG: §6" + msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package net.t2code.t2codelib.SPIGOT.api.messages;
|
package net.t2code.t2codelib.SPIGOT.api.messages;
|
||||||
|
|
||||||
import net.t2code.t2codelib.SPIGOT.api.update.T2CupdateAPI;
|
import net.t2code.t2codelib.SPIGOT.api.update.T2CupdateAPI;
|
||||||
import net.t2code.t2codelib.SPIGOT.system.T2CodeLibMain;
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
@ -36,9 +35,9 @@ public class T2Ctemplate {
|
|||||||
} else T2Csend.console(prefix + " §4 §e| §6Premium: §4false");
|
} else T2Csend.console(prefix + " §4 §e| §6Premium: §4false");
|
||||||
if (isVerify != null) {
|
if (isVerify != null) {
|
||||||
if (isVerify) {
|
if (isVerify) {
|
||||||
T2Csend.console(prefix + " §4 §e| §6License: §2true");
|
T2Csend.console(prefix + " §4 §e| §6Verify: §2true");
|
||||||
} else T2Csend.console(prefix + " §4 §e| §6License: §4false");
|
} else T2Csend.console(prefix + " §4 §e| §6Verify: §4false");
|
||||||
} else T2Csend.console(prefix + " §4 §e| §6License: §4false");
|
} else T2Csend.console(prefix + " §4 §e| §6Verify: §4false");
|
||||||
}
|
}
|
||||||
|
|
||||||
T2Csend.console(prefix + " §4 §e-------------------");
|
T2Csend.console(prefix + " §4 §e-------------------");
|
||||||
@ -46,12 +45,10 @@ public class T2Ctemplate {
|
|||||||
T2Csend.console(prefix + " §eYou are running §4" + version + " §eof " + prefix + "§e! Some features may not be working as expected. Please report all" +
|
T2Csend.console(prefix + " §eYou are running §4" + version + " §eof " + prefix + "§e! Some features may not be working as expected. Please report all" +
|
||||||
" bugs here: http://dc.t2code.net §4UpdateChecker & bStats may be disabled!");
|
" bugs here: http://dc.t2code.net §4UpdateChecker & bStats may be disabled!");
|
||||||
T2Csend.console(prefix + " §4 §e-------------------");
|
T2Csend.console(prefix + " §4 §e-------------------");
|
||||||
if (!T2CodeLibMain.getPlugin().getConfig().getBoolean("dev")){
|
try {
|
||||||
try {
|
Thread.sleep(5000);
|
||||||
Thread.sleep(5000);
|
} catch (InterruptedException e) {
|
||||||
} catch (InterruptedException e) {
|
e.printStackTrace();
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,10 +115,9 @@ public class T2CupdateAPI {
|
|||||||
}.runTaskLaterAsynchronously(plugin, 600L);
|
}.runTaskLaterAsynchronously(plugin, 600L);
|
||||||
} else sendUpdateMsg(prefix, spigotID, discord, plugin);
|
} else sendUpdateMsg(prefix, spigotID, discord, plugin);
|
||||||
} else {
|
} else {
|
||||||
if (!update.load) {
|
if (!update.load){
|
||||||
T2Csend.console(prefix + " §2No update found.");
|
T2Csend.console(prefix + " §2No update found.");
|
||||||
update.load = true;
|
update.load = true;
|
||||||
T2CupdateAPI.pluginVersions.replace(plugin.getName(), update);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, prefix, plugin.getDescription().getVersion());
|
}, prefix, plugin.getDescription().getVersion());
|
||||||
|
@ -76,8 +76,8 @@ public class CreateReportLog {
|
|||||||
pWriter.println("T2C-LuckyBox UID: " + LuckyBoxAPI.getUID());
|
pWriter.println("T2C-LuckyBox UID: " + LuckyBoxAPI.getUID());
|
||||||
pWriter.println("T2C-LuckyBox RID: " + LuckyBoxAPI.getRID());
|
pWriter.println("T2C-LuckyBox RID: " + LuckyBoxAPI.getRID());
|
||||||
pWriter.println("T2C-LuckyBox DID: " + LuckyBoxAPI.getDID());
|
pWriter.println("T2C-LuckyBox DID: " + LuckyBoxAPI.getDID());
|
||||||
pWriter.println("T2C-LuckyBox Premium: " + LuckyBoxAPI.isP());
|
pWriter.println("T2C-LuckyBox isP: " + LuckyBoxAPI.isP());
|
||||||
pWriter.println("T2C-LuckyBox License: " + LuckyBoxAPI.isV());
|
pWriter.println("T2C-LuckyBox isV: " + LuckyBoxAPI.isV());
|
||||||
pWriter.println();
|
pWriter.println();
|
||||||
}
|
}
|
||||||
pWriter.println("Plugins: ");
|
pWriter.println("Plugins: ");
|
||||||
|
Loading…
Reference in New Issue
Block a user