mirror of
https://github.com/Auxilor/EcoJobs.git
synced 2025-12-22 08:29:24 +00:00
The Job level GUI title is now customisable
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -124,6 +124,7 @@ gui:
|
||||
|
||||
level-gui:
|
||||
rows: 6
|
||||
title: "%job%"
|
||||
|
||||
mask:
|
||||
# The way the mask works is by having a list of materials
|
||||
|
||||
Reference in New Issue
Block a user