fixes #1186 added carpetCommandPermissionLevel to allow admins to control who has access to /carpet command.

This commit is contained in:
gnembon committed 2021-11-29 23:27:54 +01:00
1 parent f5900cffc6
commit 7a4c094607
2 files changed
+22 -1

No files matched your search

@@ -588,7 +588,7 @@ public class SettingsManager
}
LiteralArgumentBuilder<ServerCommandSource> literalargumentbuilder = literal(identifier).requires((player) ->
player.hasPermissionLevel(2) && !locked);
canUseCommand(player, CarpetSettings.carpetCommandPermissionLevel) && !locked);
literalargumentbuilder.executes((context)-> listAllSettings(context.getSource())).
then(literal("list").