diff --git a/gradle.properties b/gradle.properties index a483618..0fc9490 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ minecraft_version=1.19.4 yarn_mappings=1.19.4+build.2 loader_version=0.14.19 # Mod Properties -mod_version=0.1.0 +mod_version=0.1.1 maven_group=com.mineblock11 archives_base_name=SimpleBroadcast # Dependencies diff --git a/src/main/java/com/mineblock11/simplebroadcast/commands/SimpleBroadcastCommands.java b/src/main/java/com/mineblock11/simplebroadcast/commands/SimpleBroadcastCommands.java index a2b8c88..a6e9e48 100644 --- a/src/main/java/com/mineblock11/simplebroadcast/commands/SimpleBroadcastCommands.java +++ b/src/main/java/com/mineblock11/simplebroadcast/commands/SimpleBroadcastCommands.java @@ -31,6 +31,7 @@ public class SimpleBroadcastCommands { public void registerCommands(CommandDispatcher commandDispatcher, CommandRegistryAccess registryAccess, CommandManager.RegistrationEnvironment registrationEnvironment) { commandDispatcher.register( literal("broadcast") + .requires(source -> source.hasPermissionLevel(4)) .then(argument("contents", StringArgumentType.string()).executes(this::quickBroadcast)) .then(literal("types") .then(