mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-14 14:45:31 +01:00
Support for color codes in the treasure inventory title
This commit is contained in:
parent
0a43be0973
commit
c8708e8bc8
@ -3,6 +3,7 @@ package io.github.dre2n.dungeonsxl.dungeon;
|
||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.InventoryView;
|
||||
@ -21,7 +22,7 @@ public class DLootInventory {
|
||||
public DLootInventory(Player player, ItemStack[] istacks) {
|
||||
plugin.getDLootInventories().add(this);
|
||||
|
||||
inventory = Bukkit.createInventory(player, 54, DungeonsXL.getPlugin().getDMessages().get("Player_Treasures"));
|
||||
inventory = Bukkit.createInventory(player, 54, ChatColor.translateAlternateColorCodes('&', DungeonsXL.getPlugin().getDMessages().get("Player_Treasures")));
|
||||
for (ItemStack istack : istacks) {
|
||||
if (istack != null) {
|
||||
inventory.addItem(istack);
|
||||
|
Loading…
Reference in New Issue
Block a user