Skip to content

Commit 29d1dba

Browse files
committed
Fix: bathappy command have no permission requirement
Bump Version to 1.4.51 Took 26 minutes
1 parent 361d7d5 commit 29d1dba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mod_name=Power Tool
3434
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
3535
mod_license=GPL-3.0
3636
# The mod version. See https://semver.org/
37-
mod_version=1.4.50
37+
mod_version=1.4.51
3838
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
3939
# This should match the base package used for the mod sources.
4040
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

src/main/java/org/teacon/powertool/command/AccelerateCommand.java

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class AccelerateCommand {
3737
);
3838

3939
public static final LiteralArgumentBuilder<CommandSourceStack> ALIAS_BAT_HAPPY = Commands.literal("bathappy")
40+
.requires(p -> p.hasPermission(2))
4041
.redirect(COMMAND.build());
4142

4243
private static RequiredArgumentBuilder<CommandSourceStack, Double> createXyzArgs(Command<CommandSourceStack> command) {

0 commit comments

Comments
 (0)