Skip to content

Commit

Permalink
fixes #770
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Aug 2, 2024
1 parent fe501dd commit 40a0b93
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.badbones69.crazycrates.api.objects.other.CrateLocation;
import com.badbones69.crazycrates.support.holograms.HologramManager;
import com.ryderbelserion.vital.paper.util.AdvUtil;
import com.ryderbelserion.vital.paper.util.ItemUtil;
import com.ryderbelserion.vital.paper.util.scheduler.FoliaRunnable;
import com.badbones69.crazycrates.tasks.BukkitUserManager;
import com.badbones69.crazycrates.tasks.crates.CrateManager;
Expand Down Expand Up @@ -152,7 +153,13 @@ public void open(@NotNull final KeyType type, final boolean checkHand) {
}

reward.setVelocity(new Vector(0, .2, 0));
reward.customName(AdvUtil.parse(prize.getPrizeName()));

if (ConfigManager.getConfig().getProperty(ConfigKeys.minimessage_toggle)) {
reward.customName(AdvUtil.parse(prize.getPrizeName()));
} else {
reward.setCustomName(ItemUtil.color(prize.getPrizeName()));
}

reward.setCustomNameVisible(true);
reward.setCanMobPickup(false);
reward.setCanPlayerPickup(false);
Expand Down

0 comments on commit 40a0b93

Please sign in to comment.