diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java index ee5bb33db..22e11aafe 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java @@ -135,6 +135,7 @@ import org.bukkit.generator.ChunkGenerator; import org.bukkit.metadata.FixedMetadataValue; import org.bukkit.metadata.MetadataValue; import org.bukkit.plugin.Plugin; +import org.bukkit.plugin.RegisteredServiceProvider; import org.bukkit.plugin.java.JavaPlugin; import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.Nullable; @@ -1178,6 +1179,17 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl .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"); + List> providers = Bukkit.getServicesManager().getRegistrations(p); + if (!providers.isEmpty()) { + msg.append(" • Provided Services: \n"); + for (RegisteredServiceProvider provider : providers) { + msg.append(" • ") + .append(provider.getService().getName()).append(" = ") + .append(provider.getProvider().getClass().getName()) + .append(" (priority: ").append(provider.getPriority()).append(")") + .append("\n"); + } + } } return msg.toString(); }