Skip to content

Commit a894584

Browse files
committed
Update remove fireworks for money
1 parent e4d5ff1 commit a894584

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • core/src/main/java/be/isach/ultracosmetics/treasurechests/loot

core/src/main/java/be/isach/ultracosmetics/treasurechests/loot/MoneyLoot.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ public LootReward giveToPlayer(UltraPlayer player, TreasureChest chest) {
2626

2727
UltraCosmeticsData.get().getPlugin().getEconomyHandler().getHook().deposit(player.getBukkitPlayer(), money);
2828
// Spawn a firework if the player got more than 3/4 of the money they could have.
29-
boolean firework = money > 3 * SettingsManager.getConfig().getInt("TreasureChests.Loots.Money.Max") / 4;
3029
boolean toOthers = SettingsManager.getConfig().getBoolean("TreasureChests.Loots.Money.Message.enabled");
3130
TagResolver.Single moneyPlaceholder = Placeholder.unparsed("money", String.valueOf(money));
3231
String[] name = MessageManager.getLegacyMessage("Treasure-Chests-Loot.Money", moneyPlaceholder).split("\n");
3332
Component msg = MessageManager.getMessage("Treasure-Chests-Loot-Messages.Money", moneyPlaceholder,
3433
Placeholder.unparsed("name", player.getBukkitPlayer().getName())
3534
);
36-
return new LootReward(name, XMaterial.SUNFLOWER.parseItem(), msg, toOthers, firework);
35+
return new LootReward(name, XMaterial.SUNFLOWER.parseItem(), msg, toOthers, false);
3736
}
3837
}

0 commit comments

Comments
 (0)