Fixes colored NPC names, and cleans up a bit
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good

This commit is contained in:
2024-12-15 14:20:03 +01:00
parent b01ccfc537
commit 7e17122bb2
10 changed files with 24 additions and 41 deletions

View File

@@ -88,9 +88,9 @@ public class EconomyManager {
/**
* Gets whether the given player has enough money to pay the given cost
*
*
* @param player <p>The player to check</p>
* @param cost <p>The required cost</p>
* @param cost <p>The required cost</p>
* @return <p>True if the player has enough money to cover the cost</p>
*/
public static boolean hasEnough(@NotNull Player player, double cost) {
@@ -99,7 +99,7 @@ public class EconomyManager {
/**
* Formats a number as an economy cost
*
*
* @param cost <p>The cost to format</p>
* @return <p>The formatted cost</p>
*/
@@ -154,7 +154,7 @@ public class EconomyManager {
/**
* Withdraws money from a player
*
* @param player <p>The player to withdraw from</p>
* @param player <p>The player to withdraw from</p>
* @param monetaryCost <p>The cost to withdraw</p>
* @throws IllegalArgumentException <p>If a negative cost is given</p>
*/