diff --git a/.gradle/8.8/executionHistory/executionHistory.bin b/.gradle/8.8/executionHistory/executionHistory.bin index 65b994b..f73d6be 100644 Binary files a/.gradle/8.8/executionHistory/executionHistory.bin and b/.gradle/8.8/executionHistory/executionHistory.bin differ diff --git a/.gradle/8.8/executionHistory/executionHistory.lock b/.gradle/8.8/executionHistory/executionHistory.lock index 9648121..a7d5a5d 100644 Binary files a/.gradle/8.8/executionHistory/executionHistory.lock and b/.gradle/8.8/executionHistory/executionHistory.lock differ diff --git a/.gradle/8.8/fileHashes/fileHashes.bin b/.gradle/8.8/fileHashes/fileHashes.bin index d46a322..255a843 100644 Binary files a/.gradle/8.8/fileHashes/fileHashes.bin and b/.gradle/8.8/fileHashes/fileHashes.bin differ diff --git a/.gradle/8.8/fileHashes/fileHashes.lock b/.gradle/8.8/fileHashes/fileHashes.lock index 8e21303..9052e65 100644 Binary files a/.gradle/8.8/fileHashes/fileHashes.lock and b/.gradle/8.8/fileHashes/fileHashes.lock differ diff --git a/.gradle/8.8/fileHashes/resourceHashesCache.bin b/.gradle/8.8/fileHashes/resourceHashesCache.bin index 31bffd3..5da1811 100644 Binary files a/.gradle/8.8/fileHashes/resourceHashesCache.bin and b/.gradle/8.8/fileHashes/resourceHashesCache.bin differ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index f3c8baa..6b26e0c 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe index ca0d3bc..516c8e5 100644 Binary files a/.gradle/file-system.probe and b/.gradle/file-system.probe differ diff --git a/build/libs/GrimmsServer-1.5.jar b/build/libs/GrimmsServer-1.5.jar index 7863e7e..eedfe5e 100644 Binary files a/build/libs/GrimmsServer-1.5.jar and b/build/libs/GrimmsServer-1.5.jar differ diff --git a/build/tmp/compileJava/previous-compilation-data.bin b/build/tmp/compileJava/previous-compilation-data.bin index 2e9e0df..7f2aa52 100644 Binary files a/build/tmp/compileJava/previous-compilation-data.bin and b/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/src/main/java/org/gsdistance/grimmsServer/Commands/MarketComand/BuyEnchantment.java b/src/main/java/org/gsdistance/grimmsServer/Commands/MarketComand/BuyEnchantment.java index 513d1ca..5a82858 100644 --- a/src/main/java/org/gsdistance/grimmsServer/Commands/MarketComand/BuyEnchantment.java +++ b/src/main/java/org/gsdistance/grimmsServer/Commands/MarketComand/BuyEnchantment.java @@ -24,6 +24,10 @@ public class BuyEnchantment { Enchantment enchantment = Enchantment.getByKey(NamespacedKey.minecraft(args[1].toLowerCase())); if (enchantment != null && EnchantBaseValues.enchantBaseValues.containsKey(enchantment)) { ItemStack itemToApply = ((Player) sender).getInventory().getItemInMainHand(); + if (itemToApply.getAmount() > 1) { + sender.sendMessage("You can only enchant one item at a time. Please unstack the item first."); + return false; + } int enchantBonus = Math.toIntExact(Math.min(Math.round(Math.sqrt(ItemLevelHandler.getLevelHandler(itemToApply, (Player) sender).getLevel())), 100L)); if (RelicHandler.isRelic(itemToApply)) { RelicHandler relicHandler = RelicHandler.getRelicHandler(itemToApply); diff --git a/src/main/java/org/gsdistance/grimmsServer/Stats/PlayerTitles.java b/src/main/java/org/gsdistance/grimmsServer/Stats/PlayerTitles.java index 1e5b913..fb544e9 100644 --- a/src/main/java/org/gsdistance/grimmsServer/Stats/PlayerTitles.java +++ b/src/main/java/org/gsdistance/grimmsServer/Stats/PlayerTitles.java @@ -8,7 +8,7 @@ import org.gsdistance.grimmsServer.Shared; import java.util.Map; public class PlayerTitles { - public static final Map titles = Map.ofEntries(Map.entry("Dictator", "The title of a dictator, not to be messed with."), Map.entry("Executioner", "The title and power of execution."), Map.entry("Murderer", "Someone whose crimes follow him till death."), Map.entry("Victim", "Got murdered, unfortunate."), Map.entry("DragonSlayer", "The fabled warrior to defeat the fabled dragon or something like that."), Map.entry("Newbie", "Wowie! Joining the game gives a title!"), Map.entry("Richie", "Money talks, well at least that's what I've been told!"), Map.entry("Millionaire", "Wow, that's quite a lot ya' know!"), Map.entry("Billionaire", "Capitalism at it's finest."), Map.entry("Trillionaire", "Literally insane, no comment."), Map.entry("Quadrillionaire", "Why?"), Map.entry("Miner", "Minin' to the earths core."), Map.entry("Anti-block", "DEMOLISH 10000 blocks"), Map.entry("UltimateMiner", "Mine 100000 blocks"), Map.entry("Titlemaxxer", "Get more than 5 titles"), Map.entry("KillingMachine", "Kill 100 things(?)."), Map.entry("ProGamer", "Kill 1000 things(?)."), Map.entry("Hitman", "Professional killerguy."), Map.entry("Leader", "You got on the leaderboard."), Map.entry("Null", "Not a title bro.")); + public static final Map titles = Map.ofEntries(Map.entry("Dictator", "The title of a dictator, not to be messed with."), Map.entry("Executioner", "The title and power of execution."), Map.entry("Murderer", "Someone whose crimes follow him till death."), Map.entry("Victim", "Got murdered, unfortunate."), Map.entry("DragonSlayer", "The fabled warrior to defeat the fabled dragon or something like that."), Map.entry("Newbie", "Wowie! Joining the game gives a title!"), Map.entry("Richie", "Money talks, well at least that's what I've been told!"), Map.entry("Millionaire", "Wow, that's quite a lot ya' know!"), Map.entry("Billionaire", "Capitalism at it's finest."), Map.entry("Trillionaire", "Literally insane, no comment."), Map.entry("Quadrillionaire", "Why?"), Map.entry("Miner", "Minin' to the earths core."), Map.entry("Anti-block", "DEMOLISH 10000 blocks"), Map.entry("UltimateMiner", "Mine 100000 blocks"), Map.entry("Titlemaxxer", "Get more than 5 titles"), Map.entry("KillingMachine", "Kill 100 things(?)."), Map.entry("ProGamer", "Kill 1000 things(?)."), Map.entry("Hitman", "Professional killerguy."), Map.entry("Leader", "You got on the leaderboard."), Map.entry("Null", "Not a title bro."), Map.entry("BugSlayer", "Reported a bug."), Map.entry("ExploitDestroyer","Reported an exploit."), Map.entry("Disgrace.", "Abused an exploit.")); private final Player player; public PlayerTitles(Player player) {