Skip to content

Commit ccae9c1

Browse files
committed
Bump mod to 1.21.11
1 parent 44496cb commit ccae9c1

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ neogradle.subsystems.parchment.mappingsVersion=2025.10.12
1212
# Environment Properties
1313
# You can find the latest versions here: https://projects.neoforged.net/neoforged/neoforge
1414
# The Minecraft version must agree with the Neo version to get a valid artifact
15-
minecraft_version=1.21.10
15+
minecraft_version=1.21.11
1616
# The Minecraft version range can use any release version of Minecraft as bounds.
1717
# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly
1818
# as they do not follow standard versioning conventions.
19-
minecraft_version_range=[1.21,1.22)
19+
minecraft_version_range=[1.21.11,)
2020
# The Neo version must agree with the Minecraft version to get a valid artifact
21-
neo_version=21.10.64
21+
neo_version=21.11.36-beta
2222
# The Neo version range can use any version of Neo as bounds
23-
neo_version_range=[21.0.167,)
23+
neo_version_range=[21.11.0,)
2424
# The loader version range can only use the major version of FML as bounds
2525
loader_version_range=[1,)
2626

src/main/java/top/seraphjack/rmc/RMCCommand.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.mojang.brigadier.exceptions.CommandSyntaxException;
88
import com.mojang.brigadier.exceptions.DynamicCommandExceptionType;
99
import net.minecraft.commands.CommandSourceStack;
10+
import net.minecraft.commands.Commands;
1011
import net.minecraft.network.chat.ClickEvent;
1112
import net.minecraft.network.chat.Component;
1213
import net.minecraft.network.chat.Style;
@@ -37,17 +38,17 @@ static void register(CommandDispatcher<CommandSourceStack> dispatcher) {
3738
dispatcher.register(
3839
literal("rmc")
3940
.then(literal("schedule")
40-
.requires(p -> p.hasPermission(3))
41+
.requires(Commands.hasPermission(Commands.LEVEL_ADMINS))
4142
.executes(RMCCommand::scheduleBackup))
4243
.then(literal("setInterval")
43-
.requires(p -> p.hasPermission(3))
44+
.requires(Commands.hasPermission(Commands.LEVEL_ADMINS))
4445
.then(argument("interval", StringArgumentType.string())
4546
.executes(RMCCommand::setInterval)))
4647
.then(literal("snapshots")
47-
.requires(p -> p.hasPermission(3))
48+
.requires(Commands.hasPermission(Commands.LEVEL_ADMINS))
4849
.executes(RMCCommand::listSnapshots))
4950
.then(literal("restore")
50-
.requires(p -> p.hasPermission(4))
51+
.requires(Commands.hasPermission(Commands.LEVEL_ADMINS))
5152
.then(argument("snapshot", StringArgumentType.string())
5253
.executes(RMCCommand::restore)))
5354
.then(literal("version")

0 commit comments

Comments
 (0)