[build] 1.5.1 release

This commit is contained in:
Ryder Belserion 2024-06-25 13:11:18 -04:00
parent 506bcaa3e2
commit 642ad03b22
No known key found for this signature in database
5 changed files with 12 additions and 19 deletions

View File

@ -1,5 +1,5 @@
### Added:
- 1.21 support
### Changes:
- Added a permission check for crazyauctions.access on the command /crazyauctions
### Removed:
- 1.20.6 support
### Fixed:
- Sending double messages if they don't have the permission.

View File

@ -7,7 +7,7 @@ plugins {
val buildNumber: String? = System.getenv("BUILD_NUMBER")
rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "1.5"
rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "1.5.1"
val isSnapshot = false

View File

@ -1,10 +1,4 @@
[
{
"uuid": "45123240-248b-44e3-93c9-5c89093ffaad",
"name": "Asruna",
"level": 4,
"bypassesPlayerLimit": false
},
{
"uuid": "42bf0b48-8574-44b5-8cce-5accf9363b05",
"name": "mitchy387",

View File

@ -1,10 +1,11 @@
#Minecraft server properties
#Sun Jun 16 21:34:17 EDT 2024
#Tue Jun 25 13:09:57 EDT 2024
accepts-transfers=false
allow-flight=false
allow-nether=false
broadcast-console-to-ops=false
broadcast-rcon-to-ops=false
bug-report-link=
debug=false
difficulty=peaceful
enable-command-block=false

View File

@ -22,7 +22,6 @@ import org.bukkit.permissions.PermissionAttachmentInfo;
import org.jetbrains.annotations.NotNull;
import org.yaml.snakeyaml.error.YAMLException;
import java.util.ArrayList;
import java.util.Base64;
import java.util.HashMap;
import java.util.Random;
import java.util.UUID;
@ -37,7 +36,7 @@ public class AuctionCommand implements CommandExecutor {
private final FileManager fileManager = this.plugin.getFileManager();
@Override
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, String commandLabel, String[] args) {
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @NotNull String commandLabel, String[] args) {
FileConfiguration config = Files.CONFIG.getFile();
FileConfiguration data = Files.DATA.getFile();
@ -47,6 +46,10 @@ public class AuctionCommand implements CommandExecutor {
return true;
}
if (!Methods.hasPermission(sender, "access")) {
return true;
}
if (config.contains("Settings.Category-Page-Opens-First")) {
if (config.getBoolean("Settings.Category-Page-Opens-First")) {
GuiListener.openCategories(player, ShopType.SELL);
@ -67,7 +70,6 @@ public class AuctionCommand implements CommandExecutor {
switch (args[0].toLowerCase()) {
case "help" -> {
if (!Methods.hasPermission(sender, "access")) {
sender.sendMessage(Messages.NO_PERMISSION.getMessage());
return true;
}
@ -77,7 +79,6 @@ public class AuctionCommand implements CommandExecutor {
case "test" -> {
if (!Methods.hasPermission(sender, "test")) {
sender.sendMessage(Messages.NO_PERMISSION.getMessage());
return true;
}
@ -156,7 +157,6 @@ public class AuctionCommand implements CommandExecutor {
case "reload" -> {
if (!Methods.hasPermission(sender, "reload")) {
sender.sendMessage(Messages.NO_PERMISSION.getMessage());
return true;
}
@ -169,7 +169,6 @@ public class AuctionCommand implements CommandExecutor {
case "view" -> {
if (!Methods.hasPermission(sender, "view")) {
sender.sendMessage(Messages.NO_PERMISSION.getMessage());
return true;
}
@ -189,7 +188,6 @@ public class AuctionCommand implements CommandExecutor {
case "expired", "collect" -> {
if (!Methods.hasPermission(sender, "access")) {
sender.sendMessage(Messages.NO_PERMISSION.getMessage());
return true;
}