Update DebugPaste.java

This commit is contained in:
Jesse Boyd 2019-11-25 22:40:50 +00:00
parent a65d546f3b
commit cf558d8f62
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -56,11 +56,10 @@ public class DebugPaste extends SubCommand {
.append(!Settings.UUID.OFFLINE).append('\n');
b.append("Plugins:");
for (Map.Entry<Map.Entry<String, String>, Boolean> pluginInfo : PlotSquared.get().IMP.getPluginIds()) {
String[] split = id.split(":");
String[] split2 = split[0].split(";");
String enabled = split.length == 2 ? split[1] : "unknown";
String name = split2[0];
String version = split2.length == 2 ? split2[1] : "unknown";
Map.Entry<String, String> nameVersion = pluginInfo.getKey();
String name = nameVersion.getKey();
String version = nameVersion.getValue();
boolean enabled = pluginInfo.getValue();
b.append("\n ").append(name).append(":\n ").append("version: '")
.append(version).append('\'').append("\n enabled: ").append(enabled);
}