Skip to content

Commit 95ec542

Browse files
Enhance debug feature
1 parent 513f4c6 commit 95ec542

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

src/me/crafter/mc/lockettepro/LockettePro.java

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,45 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,
192192
// Config
193193
player.sendMessage("UUID: " + Config.isUuidEnabled());
194194
// ProtocolLib
195+
player.sendMessage("ProtocolLib info:");
195196
if (Bukkit.getPluginManager().getPlugin("ProtocolLib") == null){
196197
player.sendMessage(" - ProtocolLib missing");
197198
} else {
198-
player.sendMessage(" - ProtocolLib version: " + Bukkit.getPluginManager().getPlugin("ProtocolLib").getDescription().getVersion());
199+
player.sendMessage(" - ProtocolLib: " + Bukkit.getPluginManager().getPlugin("ProtocolLib").getDescription().getVersion());
200+
}
201+
// Other
202+
player.sendMessage("Linked plugins:");
203+
boolean linked = false;
204+
if (Dependency.worldguard != null){
205+
linked = true;
206+
player.sendMessage(" - Worldguard: " + Dependency.worldguard.getDescription().getVersion());
207+
}
208+
if (Dependency.residence != null){
209+
linked = true;
210+
player.sendMessage(" - Residence: " + Dependency.residence.getDescription().getVersion());
211+
}
212+
if (Dependency.towny != null){
213+
linked = true;
214+
player.sendMessage(" - Towny: " + Dependency.towny.getDescription().getVersion());
215+
}
216+
if (Dependency.factions != null){
217+
linked = true;
218+
player.sendMessage(" - Factions: " + Dependency.factions.getDescription().getVersion());
219+
}
220+
if (Dependency.vault != null){
221+
linked = true;
222+
player.sendMessage(" - Vault: " + Dependency.vault.getDescription().getVersion());
223+
}
224+
if (Dependency.askyblock != null){
225+
linked = true;
226+
player.sendMessage(" - ASkyBlock: " + Dependency.askyblock.getDescription().getVersion());
227+
}
228+
if (Dependency.plotsquared != null){
229+
linked = true;
230+
player.sendMessage(" - PlotSquared: " + Dependency.plotsquared.getDescription().getVersion());
231+
}
232+
if (!linked){
233+
player.sendMessage(" - none");
199234
}
200235
break;
201236
}

0 commit comments

Comments
 (0)