1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Fixed Addons List

This commit is contained in:
TheBusyBiscuit 2017-01-18 15:39:03 +01:00
parent c7b47bd934
commit d8c8e0f2e3

View File

@ -156,7 +156,7 @@ public class SlimefunCommand implements CommandExecutor, Listener {
sender.sendMessage(""); sender.sendMessage("");
sender.sendMessage(ChatColor.translateAlternateColorCodes('&', "&7&oInstalled Addons:")); sender.sendMessage(ChatColor.translateAlternateColorCodes('&', "&7&oInstalled Addons:"));
for (Plugin plugin: Bukkit.getPluginManager().getPlugins()) { for (Plugin plugin: Bukkit.getPluginManager().getPlugins()) {
if (plugin.getDescription().getSoftDepend().contains("Slimefun")) { if (plugin.getDescription().getDepend().contains("Slimefun") || plugin.getDescription().getSoftDepend().contains("Slimefun")) {
if (Bukkit.getPluginManager().isPluginEnabled(plugin)) { if (Bukkit.getPluginManager().isPluginEnabled(plugin)) {
sender.sendMessage(ChatColor.translateAlternateColorCodes('&', " &a" + plugin.getName() + " &2v" + plugin.getDescription().getVersion())); sender.sendMessage(ChatColor.translateAlternateColorCodes('&', " &a" + plugin.getName() + " &2v" + plugin.getDescription().getVersion()));
} }