Merge branch 'master' into 1.15

This commit is contained in:
gnembon committed 2019-09-27 11:16:57 -05:00
commit 23c3dc58a5
3 files changed
+31 -2

No files matched your search

@@ -16,7 +16,10 @@ public class TestCommand
public static void register(CommandDispatcher<ServerCommandSource> dispatcher)
{
dispatcher.register(literal("test").
then(literal("dump").executes((c) -> CarpetServer.settingsManager.printAllRulesToLog())).
then(literal("dump").
executes((c) -> CarpetServer.settingsManager.printAllRulesToLog(null)).
then(argument("category", word()).
executes( (c) -> CarpetServer.settingsManager.printAllRulesToLog(getString(c, "category"))))).
then(argument("first",word()).
executes( (c)-> test(c, getString(c, "first")+" 1"))).
then(argument("second", word()).