mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-26 12:35:39 +01:00
Whoops ;D
This commit is contained in:
parent
8c18caf30b
commit
90937d6322
@ -42,8 +42,7 @@ public class GeneratorCommand extends MultiverseCommand {
|
|||||||
public static void showAvailableGenerator(@NotNull CommandSender sender) {
|
public static void showAvailableGenerator(@NotNull CommandSender sender) {
|
||||||
List<String> generators = Arrays.stream(Bukkit.getServer().getPluginManager().getPlugins())
|
List<String> generators = Arrays.stream(Bukkit.getServer().getPluginManager().getPlugins())
|
||||||
.filter(Plugin::isEnabled)
|
.filter(Plugin::isEnabled)
|
||||||
//TODO ACF: Think what if they do not have a world named 'world'
|
.filter(plugin -> plugin.getDefaultWorldGenerator("world", "") != null)
|
||||||
.filter(plugin -> plugin.getDefaultWorldGenerator("idiot", "") != null)
|
|
||||||
.map(plugin -> plugin.getDescription().getName())
|
.map(plugin -> plugin.getDescription().getName())
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user