Fix command response not displayed in chat

This commit is contained in:
s809
2023-11-25 18:04:53 +05:00
parent 0e93aa4aea
commit b59d8cff8d
@@ -110,7 +110,7 @@ public class FabricDedicatedServerMain implements DedicatedServerModInitializer
var subcommand = literal(configEntry.getServersideShortName())
.executes(c -> {
LOGGER.info("Current value of {} is {}", configEntry.getServersideShortName(), configEntry.get());
c.getSource().sendSuccess(() -> Component.literal("Current value of "+configEntry.getServersideShortName()+" is {}"+configEntry.get()), true);
return 1;
});