Skip to content

Commit

Permalink
force itemflags
Browse files Browse the repository at this point in the history
Took 9 minutes
  • Loading branch information
Oribuin committed May 30, 2024
1 parent 24a3b99 commit 058bdf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/xyz/oribuin/playerwarps/gui/menu/WarpsMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import dev.triumphteam.gui.guis.PaginatedGui;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
import xyz.oribuin.playerwarps.PlayerWarpsPlugin;
import xyz.oribuin.playerwarps.gui.MenuItem;
Expand Down Expand Up @@ -87,6 +88,7 @@ public void open(Player player) {
ItemStack newIcon = new ItemBuilder(warpIcon)
.name(this.locale.format(player, this.config.getString("warp-icon.name"), placeholders))
.lore(newLore)
.flags(ItemFlag.values())
.build();

gui.addItem(new GuiItem(newIcon, event -> warp.teleport(player)));
Expand Down

0 comments on commit 058bdf9

Please sign in to comment.