diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/ftbsc/bscv/commands/ModCommands.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/ftbsc/bscv/commands/ModCommands.java b/src/main/java/ftbsc/bscv/commands/ModCommands.java index 82e8661..57e1887 100644 --- a/src/main/java/ftbsc/bscv/commands/ModCommands.java +++ b/src/main/java/ftbsc/bscv/commands/ModCommands.java @@ -9,7 +9,7 @@ import ftbsc.bscv.api.IModule; import net.minecraft.command.CommandSource; import net.minecraft.command.Commands; -import static ftbsc.bscv.Boscovicino.log; +import java.util.stream.Collectors; @AutoService(ILoadable.class) public class ModCommands extends AbstractCommand { @@ -43,8 +43,11 @@ public class ModCommands extends AbstractCommand { }) ) .executes(ctx -> { - log("no args specified"); - return 0; + String mods = Boscovicino.modManager.mods.stream() + .map(x -> x.getName()) + .collect(Collectors.joining(",")); + Boscovicino.log("[ %s ]", mods); + return 1; }); } |