@@ -266,7 +266,7 @@ or a subpackage.
266266| Property | Type | Default | Description |
267267| :---------| :---------| :-------------| :-----------------------------------------|
268268| ` id ` | ` String ` | * (required)* | Unique identifier used to open the GUI |
269- | ` title ` | ` String ` | * (required)* | Title displayed at the top of the chest |
269+ | ` title ` | ` Component ` | * (required)* | Title displayed at the top of the chest |
270270| ` rows ` | ` Int ` | ` 3 ` | Number of rows (1–6, each row = 9 slots) |
271271
272272### Methods to Override
@@ -294,6 +294,7 @@ GUIManager.open(player, "settings")
294294package com.example.exampleplugin.guis
295295
296296import com.example.exampleplugin.registration.PluginGUI
297+ import net.kyori.adventure.text.Component
297298import org.bukkit.Material
298299import org.bukkit.entity.Player
299300import org.bukkit.event.inventory.InventoryClickEvent
@@ -302,13 +303,13 @@ import org.bukkit.inventory.ItemStack
302303
303304class SettingsGUI : PluginGUI (
304305 id = " settings" ,
305- title = " Settings" ,
306+ title = Component .text( "Settings ") ,
306307 rows = 3
307308) {
308309 override fun setup (player : Player , inventory : Inventory ) {
309310 val compass = ItemStack (Material .COMPASS )
310311 val meta = compass.itemMeta
311- meta.displayName(net.kyori.adventure.text. Component .text(" Tracker" ))
312+ meta.displayName(Component .text(" Tracker" ))
312313 compass.itemMeta = meta
313314 inventory.setItem(13 , compass)
314315 }
0 commit comments