9
0
mirror of https://github.com/Auxilor/EcoJobs.git synced 2025-12-22 16:39:34 +00:00

The Job level GUI title is now customisable

This commit is contained in:
Auxilor
2023-10-30 12:50:10 +00:00
parent b161bc4adf
commit c83bf6e607
2 changed files with 5 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ import com.willfp.eco.core.gui.slot.MaskItems
import com.willfp.eco.core.items.Items
import com.willfp.eco.core.items.builder.ItemStackBuilder
import com.willfp.eco.util.NumberUtils
import com.willfp.eco.util.formatEco
import com.willfp.ecojobs.api.getJobLevel
import com.willfp.ecomponent.components.LevelComponent
import com.willfp.ecomponent.components.LevelState
@@ -65,7 +66,9 @@ class JobLevelGUI(
}
menu = menu(plugin.configYml.getInt("level-gui.rows")) {
title = job.name
title = plugin.configYml.getString("level-gui.title")
.replace("%job%", job.name)
.formatEco()
maxPages(component.pages)

View File

@@ -124,6 +124,7 @@ gui:
level-gui:
rows: 6
title: "%job%"
mask:
# The way the mask works is by having a list of materials