Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
Enhance debugpaste information
Dieser Commit ist enthalten in:
Ursprung
3a5cfdc357
Commit
9f232a9690
@ -171,11 +171,19 @@ public class FaweBukkit implements IFawe, Listener {
|
|||||||
|
|
||||||
@Override public String getDebugInfo() {
|
@Override public String getDebugInfo() {
|
||||||
StringBuilder msg = new StringBuilder();
|
StringBuilder msg = new StringBuilder();
|
||||||
|
Plugin[] plugins = Bukkit.getServer().getPluginManager().getPlugins();
|
||||||
msg.append("Server Version: ").append(Bukkit.getVersion()).append("\n");
|
msg.append("Server Version: ").append(Bukkit.getVersion()).append("\n");
|
||||||
msg.append("Plugins: \n");
|
msg.append("Plugins (").append(plugins.length).append("): \n");
|
||||||
for (Plugin p : Bukkit.getPluginManager().getPlugins()) {
|
for (Plugin p : plugins) {
|
||||||
msg.append(" - ").append(p.getName()).append(": ")
|
msg.append(" - ").append(p.getName()).append(":").append("\n")
|
||||||
.append(p.getDescription().getVersion()).append("\n");
|
.append(" • Version: ").append(p.getDescription().getVersion()).append("\n")
|
||||||
|
.append(" • Enabled: ").append(p.isEnabled()).append("\n")
|
||||||
|
.append(" • Main: ").append(p.getDescription().getMain()).append("\n")
|
||||||
|
.append(" • Authors: ").append(p.getDescription().getAuthors()).append("\n")
|
||||||
|
.append(" • Load Before: ").append(p.getDescription().getLoadBefore()).append("\n")
|
||||||
|
.append(" • Dependencies: ").append(p.getDescription().getDepend()).append("\n")
|
||||||
|
.append(" • Soft Dependencies: ").append(p.getDescription().getSoftDepend()).append("\n")
|
||||||
|
.append(" • Provides: ").append(p.getDescription().getProvides()).append("\n");
|
||||||
}
|
}
|
||||||
return msg.toString();
|
return msg.toString();
|
||||||
}
|
}
|
||||||
|
@ -230,10 +230,11 @@ public final class IncendoPaster implements Paster {
|
|||||||
b.append("\n# YAY! Now, let's see what we can find in your JVM\n");
|
b.append("\n# YAY! Now, let's see what we can find in your JVM\n");
|
||||||
Runtime runtime = Runtime.getRuntime();
|
Runtime runtime = Runtime.getRuntime();
|
||||||
RuntimeMXBean rb = ManagementFactory.getRuntimeMXBean();
|
RuntimeMXBean rb = ManagementFactory.getRuntimeMXBean();
|
||||||
b.append("Uptime: ").append(TimeUnit.MINUTES.convert(rb.getUptime(), TimeUnit.MILLISECONDS) + " minutes").append('\n');
|
b.append("Uptime: ").append(TimeUnit.MINUTES.convert(rb.getUptime(), TimeUnit.MILLISECONDS))
|
||||||
b.append("Free Memory: ").append(runtime.freeMemory() / 1024 / 1024 + " MB").append('\n');
|
.append(" minutes").append('\n');
|
||||||
b.append("Max Memory: ").append(runtime.maxMemory() / 1024 / 1024 + " MB").append('\n');
|
b.append("Free Memory: ").append(runtime.freeMemory() / 1024 / 1024).append(" MB").append('\n');
|
||||||
b.append("Total Memory: ").append(runtime.totalMemory() / 1024 / 1024 + " MB").append('\n');
|
b.append("Max Memory: ").append(runtime.maxMemory() / 1024 / 1024).append(" MB").append('\n');
|
||||||
|
b.append("Total Memory: ").append(runtime.totalMemory() / 1024 / 1024).append(" MB").append('\n');
|
||||||
b.append("Available Processors: ").append(runtime.availableProcessors()).append('\n');
|
b.append("Available Processors: ").append(runtime.availableProcessors()).append('\n');
|
||||||
b.append("Java Name: ").append(rb.getVmName()).append('\n');
|
b.append("Java Name: ").append(rb.getVmName()).append('\n');
|
||||||
b.append("Java Version: '").append(System.getProperty("java.version")).append("'\n");
|
b.append("Java Version: '").append(System.getProperty("java.version")).append("'\n");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren