mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
Fix server side loading, tweak mods command.
Signed-off-by: cpw <[email protected]>
This commit is contained in:
6 files changed
+17
-5
No files matched your search
@@ -35,7 +35,9 @@ public class CommandModList {
|
||||
.requires(cs->cs.hasPermissionLevel(0)) //permission
|
||||
.executes(ctx -> {
|
||||
ctx.getSource().sendFeedback(new TranslationTextComponent("commands.forge.mods.list",
|
||||
ModList.get().getMods().stream().map(ModInfo::getModId).collect(Collectors.joining(","))),
|
||||
ModList.get().applyForEachModContainer(
|
||||
mc->String.format("%s:%s(%s)", mc.getModId(), mc.getModInfo().getVersion().toString(), mc.getCurrentState())).
|
||||
collect(Collectors.joining(","))),
|
||||
true);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user