Skip to content

Commit

Permalink
[build] add permission requirement to giveall
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Jun 25, 2024
1 parent 11ccbe2 commit 486ca42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
### Fixed:
- Issue with items given through `Items` not stacking with items obtained through vanilla means.
- `/crazycrates giveall` did not have a permission requirement.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {

val buildNumber: String? = System.getenv("BUILD_NUMBER")

rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "3.4.2"
rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "3.4.3"

val isSnapshot = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public void random(CommandSender sender, @Suggestion("keys") String type, @Sugge
}

@Command("giveall")
@Permission(value = "crazycrates.giveall", def = PermissionDefault.OP)
public void all(CommandSender sender, @Suggestion("keys") String type, @Suggestion("crates") String crateName, @Suggestion("numbers") int amount) {
if (crateName.isEmpty()) {
sender.sendRichMessage(Messages.not_a_crate.getMessage(sender, "{crate}", crateName));
Expand Down

0 comments on commit 486ca42

Please sign in to comment.