mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Update DebugPaste.java
This commit is contained in:
parent
a65d546f3b
commit
cf558d8f62
@ -56,11 +56,10 @@ public class DebugPaste extends SubCommand {
|
|||||||
.append(!Settings.UUID.OFFLINE).append('\n');
|
.append(!Settings.UUID.OFFLINE).append('\n');
|
||||||
b.append("Plugins:");
|
b.append("Plugins:");
|
||||||
for (Map.Entry<Map.Entry<String, String>, Boolean> pluginInfo : PlotSquared.get().IMP.getPluginIds()) {
|
for (Map.Entry<Map.Entry<String, String>, Boolean> pluginInfo : PlotSquared.get().IMP.getPluginIds()) {
|
||||||
String[] split = id.split(":");
|
Map.Entry<String, String> nameVersion = pluginInfo.getKey();
|
||||||
String[] split2 = split[0].split(";");
|
String name = nameVersion.getKey();
|
||||||
String enabled = split.length == 2 ? split[1] : "unknown";
|
String version = nameVersion.getValue();
|
||||||
String name = split2[0];
|
boolean enabled = pluginInfo.getValue();
|
||||||
String version = split2.length == 2 ? split2[1] : "unknown";
|
|
||||||
b.append("\n ").append(name).append(":\n ").append("version: '")
|
b.append("\n ").append(name).append(":\n ").append("version: '")
|
||||||
.append(version).append('\'').append("\n enabled: ").append(enabled);
|
.append(version).append('\'').append("\n enabled: ").append(enabled);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user