Skip to content

Commit

Permalink
Remove useless basePerm changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumine1909 committed Oct 3, 2024
1 parent 9e9173d commit b8df0a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions patches/server/0094-Force-peaceful-mode-switch.patch
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ index 41f4245f558f1c41ea84891b920f1d03dcb07066..92a8c3e4fc400988b3d984e7632a8149
.flatMap(entry -> entry.getKey().stream().map(s -> Map.entry(s, entry.getValue())))
diff --git a/src/main/java/org/leavesmc/leaves/command/subcommands/PeacefulModeSwitchCommand.java b/src/main/java/org/leavesmc/leaves/command/subcommands/PeacefulModeSwitchCommand.java
new file mode 100644
index 0000000000000000000000000000000000000000..76019d286d228dcb5bea991cb55ee6c5d6bd58eb
index 0000000000000000000000000000000000000000..1fe1d08cfb6caefc67cea27ac8fc188b8d6675c5
--- /dev/null
+++ b/src/main/java/org/leavesmc/leaves/command/subcommands/PeacefulModeSwitchCommand.java
@@ -0,0 +1,87 @@
Expand Down Expand Up @@ -215,7 +215,7 @@ index 0000000000000000000000000000000000000000..76019d286d228dcb5bea991cb55ee6c5
+
+ @Override
+ public List<String> tabComplete(final CommandSender sender, final String subCommand, final String[] args) {
+ return LeavesCommandUtil.getListMatchingLast(sender, args, this.suggestPeacefulModeSwitch(args), "", "bukkit.command.leaves");
+ return LeavesCommandUtil.getListMatchingLast(sender, args, this.suggestPeacefulModeSwitch(args));
+ }
+
+ private List<String> suggestPeacefulModeSwitch(final String[] args) {
Expand Down
6 changes: 3 additions & 3 deletions patches/server/0099-Wool-Hopper-Counter.patch
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ index 92a8c3e4fc400988b3d984e7632a8149a2ce152e..99823283690fcc1e6c0f76d8dcbcca9d
.flatMap(entry -> entry.getKey().stream().map(s -> Map.entry(s, entry.getValue())))
diff --git a/src/main/java/org/leavesmc/leaves/command/subcommands/CounterCommand.java b/src/main/java/org/leavesmc/leaves/command/subcommands/CounterCommand.java
new file mode 100644
index 0000000000000000000000000000000000000000..8a24409770026450bd1f8e80d006573926b13c58
index 0000000000000000000000000000000000000000..06b4d287bf545a51b9eeb7cd24fdc6a0c05271d9
--- /dev/null
+++ b/src/main/java/org/leavesmc/leaves/command/subcommands/CounterCommand.java
@@ -0,0 +1,121 @@
Expand Down Expand Up @@ -182,12 +182,12 @@ index 0000000000000000000000000000000000000000..8a24409770026450bd1f8e80d0065739
+ List<String> list = new ArrayList<>(Arrays.stream(DyeColor.values()).map(DyeColor::getName).toList());
+ list.add("reset");
+ list.add("disable");
+ return LeavesCommandUtil.getListMatchingLast(sender, args, list, "", "bukkit.command.leaves");
+ return LeavesCommandUtil.getListMatchingLast(sender, args, list);
+ }
+
+ case 2 -> {
+ if (DyeColor.byName(args[0], null) != null) {
+ return LeavesCommandUtil.getListMatchingLast(sender, args, List.of("reset", "realtime"), "", "bukkit.command.leaves");
+ return LeavesCommandUtil.getListMatchingLast(sender, args, "reset", "realtime");
+ }
+ }
+ }
Expand Down

0 comments on commit b8df0a1

Please sign in to comment.