Bugfix in '/t2code debug createReportLog'
This commit is contained in:
parent
15f2a5d422
commit
810e61f0e2
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>T2CodeLib</artifactId>
|
<artifactId>T2CodeLib</artifactId>
|
||||||
<version>11.0</version>
|
<version>11.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>T2CodeLib</name>
|
<name>T2CodeLib</name>
|
||||||
|
@ -8,6 +8,7 @@ import net.t2code.lib.Spigot.Lib.vault.Vault;
|
|||||||
import net.t2code.luckyBox.api.LuckyBoxAPI;
|
import net.t2code.luckyBox.api.LuckyBoxAPI;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.OfflinePlayer;
|
import org.bukkit.OfflinePlayer;
|
||||||
|
import org.bukkit.Server;
|
||||||
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;
|
||||||
@ -44,21 +45,24 @@ public class CreateReportLog {
|
|||||||
pWriter.println("Online Mode: " + Bukkit.getOnlineMode());
|
pWriter.println("Online Mode: " + Bukkit.getOnlineMode());
|
||||||
pWriter.println("Worlds: " + Bukkit.getWorlds());
|
pWriter.println("Worlds: " + Bukkit.getWorlds());
|
||||||
pWriter.println("OP-Player:");
|
pWriter.println("OP-Player:");
|
||||||
for (OfflinePlayer player : Bukkit.getOperators()){
|
for (OfflinePlayer player : Bukkit.getOperators()) {
|
||||||
pWriter.println(" - Player: " +player.getName() + " - " + player.getUniqueId());
|
pWriter.println(" - Player: " + player.getName() + " - " + player.getUniqueId());
|
||||||
}
|
}
|
||||||
pWriter.println();
|
pWriter.println();
|
||||||
if (Vault.vaultEnable) {
|
if (Vault.vaultEnable) {
|
||||||
pWriter.println("Vault: " + Bukkit.getPluginManager().getPlugin("Vault").getName() + " - " + Bukkit.getPluginManager().getPlugin("Vault").getDescription().getVersion());
|
pWriter.println("Vault: " + Bukkit.getPluginManager().getPlugin("Vault").getName() + " - " + Bukkit.getPluginManager().getPlugin("Vault").getDescription().getVersion());
|
||||||
} else pWriter.println("Vault: not connected");
|
} else pWriter.println("Vault: not connected");
|
||||||
if (Main.eco != null) {
|
if (Main.eco != null) {
|
||||||
String st;
|
String st = Main.eco.getName();
|
||||||
st = Main.eco.getName();
|
|
||||||
if (Main.eco.getName().equals("CMIEconomy")) st = "CMI";
|
if (Main.eco.getName().equals("CMIEconomy")) st = "CMI";
|
||||||
pWriter.println("Economy: " + Main.eco.isEnabled() + " - " + Main.eco.getName() + " - " + Bukkit.getPluginManager().getPlugin(st).getDescription().getVersion());
|
if (Bukkit.getPluginManager().getPlugin(st) != null) {
|
||||||
|
pWriter.println("Economy: " + Main.eco.isEnabled() + " - " + st + " - " + Bukkit.getPluginManager().getPlugin(st).getDescription().getVersion());
|
||||||
|
} else pWriter.println("Economy: " + Main.eco.isEnabled() + " - " + st);
|
||||||
} else pWriter.println("Economy: not connected via vault");
|
} else pWriter.println("Economy: not connected via vault");
|
||||||
if (Main.perm != null) {
|
if (Main.perm != null) {
|
||||||
|
if (Bukkit.getPluginManager().getPlugin(Main.perm.getName()) != null) {
|
||||||
pWriter.println("Permission: " + Main.perm.isEnabled() + " - " + Main.perm.getName() + " - " + Bukkit.getPluginManager().getPlugin(Main.perm.getName()).getDescription().getVersion());
|
pWriter.println("Permission: " + Main.perm.isEnabled() + " - " + Main.perm.getName() + " - " + Bukkit.getPluginManager().getPlugin(Main.perm.getName()).getDescription().getVersion());
|
||||||
|
} else pWriter.println("Permission: " + Main.perm.isEnabled() + " - " + Main.perm.getName());
|
||||||
} else pWriter.println("Permission: not connected via vault");
|
} else pWriter.println("Permission: not connected via vault");
|
||||||
pWriter.println();
|
pWriter.println();
|
||||||
pWriter.println("Java: " + System.getProperty("java.version"));
|
pWriter.println("Java: " + System.getProperty("java.version"));
|
||||||
@ -68,7 +72,7 @@ public class CreateReportLog {
|
|||||||
pWriter.println();
|
pWriter.println();
|
||||||
pWriter.println("T2CodeLib: " + Main.plugin.getDescription().getVersion());
|
pWriter.println("T2CodeLib: " + Main.plugin.getDescription().getVersion());
|
||||||
pWriter.println();
|
pWriter.println();
|
||||||
if (PluginCheck.luckyBox()){
|
if (PluginCheck.luckyBox()) {
|
||||||
pWriter.println("T2C-PremiumPlugins: ");
|
pWriter.println("T2C-PremiumPlugins: ");
|
||||||
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());
|
||||||
@ -185,7 +189,7 @@ public class CreateReportLog {
|
|||||||
while ((len = in.read(buf)) > 0) {
|
while ((len = in.read(buf)) > 0) {
|
||||||
try {
|
try {
|
||||||
zip.write(buf, 0, len);
|
zip.write(buf, 0, len);
|
||||||
} catch (Exception ex){
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -47,10 +47,11 @@ public final class Main extends JavaPlugin {
|
|||||||
plugin = this;
|
plugin = this;
|
||||||
autor = plugin.getDescription().getAuthors();
|
autor = plugin.getDescription().getAuthors();
|
||||||
version = plugin.getDescription().getVersion();
|
version = plugin.getDescription().getVersion();
|
||||||
Long long_;
|
long long_;
|
||||||
long_ = T2CodeTemplate.onLoadHeader(prefix, autor, version, spigot, discord);
|
long_ = T2CodeTemplate.onLoadHeader(prefix, autor, version, spigot, discord);
|
||||||
if (Util.getSnapshot()){
|
if (Util.getSnapshot()){
|
||||||
send.console(prefix + " §eYou are running §4" + version + " §eof " + prefix + "§e! §4This is a trial version! §eSome features may not be working as expected. Please report all bugs here: http://dc.t2code.net §4UpdateChecker & bStats may be disabled!");
|
send.console(prefix + " §eYou are running §4" + version + " §eof " + prefix + "§e! §4This is a trial version! §eSome features may not be working as expected." +
|
||||||
|
" Please report all bugs here: http://dc.t2code.net §4UpdateChecker & bStats may be disabled!");
|
||||||
send.console(prefix + " §4 §e-------------------");
|
send.console(prefix + " §4 §e-------------------");
|
||||||
try {
|
try {
|
||||||
Thread.sleep(5000);
|
Thread.sleep(5000);
|
||||||
@ -83,25 +84,26 @@ public final class Main extends JavaPlugin {
|
|||||||
ItemVersion.scan();
|
ItemVersion.scan();
|
||||||
send.console(Main.prefix + " §3Server run on: §6" + MCVersion.isVersion + " / " + NMSVersion.isNMS);
|
send.console(Main.prefix + " §3Server run on: §6" + MCVersion.isVersion + " / " + NMSVersion.isNMS);
|
||||||
if (eco != null) {
|
if (eco != null) {
|
||||||
String st;
|
String st = eco.getName();
|
||||||
st = eco.getName();
|
|
||||||
if (eco.getName().equals("CMIEconomy")) st = "CMI";
|
if (eco.getName().equals("CMIEconomy")) st = "CMI";
|
||||||
if (Bukkit.getPluginManager().getPlugin(st) != null){
|
if (Bukkit.getPluginManager().getPlugin(st) != null){
|
||||||
send.console(Main.prefix + " §3Economy: §6" + eco.getName() + " - " + Bukkit.getPluginManager().getPlugin(st).getDescription().getVersion() + " §7- §e" + (System.currentTimeMillis() - long_.longValue()) + "ms");
|
send.console(Main.prefix + " §3Economy: §6" + eco.getName() + " - " + Bukkit.getPluginManager().getPlugin(st).getDescription().getVersion() + " §7- §e" +
|
||||||
} else send.console(Main.prefix + " §3Economy: §6" + eco.getName() + " §7- §e" + (System.currentTimeMillis() - long_.longValue()) + "ms");
|
(System.currentTimeMillis() - long_) + "ms");
|
||||||
} else send.console(Main.prefix + " §3Economy: §4not connected via vault!" + " §7- §e" + (System.currentTimeMillis() - long_.longValue()) + "ms");
|
} else send.console(Main.prefix + " §3Economy: §6" + eco.getName() + " §7- §e" + (System.currentTimeMillis() - long_) + "ms");
|
||||||
|
} else send.console(Main.prefix + " §3Economy: §4not connected via vault!" + " §7- §e" + (System.currentTimeMillis() - long_) + "ms");
|
||||||
|
|
||||||
if (perm != null) {
|
if (perm != null) {
|
||||||
if (Bukkit.getPluginManager().getPlugin(perm.getName()) != null){
|
if (Bukkit.getPluginManager().getPlugin(perm.getName()) != null){
|
||||||
send.console(Main.prefix + " §3Permission plugin: §6" + perm.getName() + " - " + Bukkit.getPluginManager().getPlugin(perm.getName()).getDescription().getVersion() + " §7- §e" + (System.currentTimeMillis() - long_.longValue()) + "ms");
|
send.console(Main.prefix + " §3Permission plugin: §6" + perm.getName() + " - " + Bukkit.getPluginManager().getPlugin(perm.getName()).getDescription().getVersion()
|
||||||
} else send.console(Main.prefix + " §3Permission plugin: §6" + perm.getName() + " - §7- §e" + (System.currentTimeMillis() - long_.longValue()) + "ms");
|
+ " §7- §e" + (System.currentTimeMillis() - long_) + "ms");
|
||||||
} else send.console(Main.prefix + " §3Permission plugin: §4not connected via vault!" + " §7- §e" + (System.currentTimeMillis() - long_.longValue()) + "ms");
|
} else send.console(Main.prefix + " §3Permission plugin: §6" + perm.getName() + " - §7- §e" + (System.currentTimeMillis() - long_) + "ms");
|
||||||
|
} else send.console(Main.prefix + " §3Permission plugin: §4not connected via vault!" + " §7- §e" + (System.currentTimeMillis() - long_) + "ms");
|
||||||
|
|
||||||
if (PluginCheck.pluginCheck("PlaceholderAPI")) {
|
if (PluginCheck.pluginCheck("PlaceholderAPI")) {
|
||||||
send.console(Main.prefix + " §3PlaceholderAPI: §6connected" + " §7- §e" + (System.currentTimeMillis() - long_.longValue()) + "ms");
|
send.console(Main.prefix + " §3PlaceholderAPI: §6connected" + " §7- §e" + (System.currentTimeMillis() - long_) + "ms");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Main.plugin.getCommand("t2code").setExecutor(new CmdExecuter());
|
Main.plugin.getCommand("t2code").setExecutor(new CmdExecuter());
|
||||||
ConfigCreate.configCreate();
|
ConfigCreate.configCreate();
|
||||||
LanguagesCreate.langCreate();
|
LanguagesCreate.langCreate();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: T2CodeLib
|
name: T2CodeLib
|
||||||
version: 11.0
|
version: 11.1
|
||||||
main: net.t2code.lib.Bungee.BMain
|
main: net.t2code.lib.Bungee.BMain
|
||||||
author: JaTiTV, Jkobs
|
author: JaTiTV, Jkobs
|
||||||
description: Libarie from T2Code Plugins
|
description: Libarie from T2Code Plugins
|
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
name: T2CodeLib
|
name: T2CodeLib
|
||||||
version: 11.0
|
version: 11.1
|
||||||
main: net.t2code.lib.Spigot.system.Main
|
main: net.t2code.lib.Spigot.system.Main
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
prefix: T2CodeLib
|
prefix: T2CodeLib
|
||||||
|
Loading…
Reference in New Issue
Block a user