Added custom GUI slots

This commit is contained in:
Auxilor
2022-09-28 12:42:57 +01:00
parent 73c9d85f61
commit 6fc68f2121
5 changed files with 24 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ allprojects {
}
dependencies {
compileOnly 'com.willfp:eco:6.37.1'
compileOnly 'com.willfp:eco:6.42.0'
implementation 'com.willfp:libreforge:3.105.0'
implementation 'org.joml:joml:1.10.4'

View File

@@ -178,6 +178,14 @@ class PetLevelGUI(
}
}
)
for (config in plugin.configYml.getSubsections("level-gui.custom-slots")) {
setSlot(
config.getInt("row"),
config.getInt("column"),
ConfigSlot(config)
)
}
}
}

View File

@@ -200,6 +200,14 @@ object PetsGUI {
}
}
)
for (config in plugin.configYml.getSubsections("gui.custom-slots")) {
setSlot(
config.getInt("row"),
config.getInt("column"),
ConfigSlot(config)
)
}
}
}

View File

@@ -116,6 +116,9 @@ gui:
row: 6
column: 2
# Custom GUI slots; see here for a how-to: https://plugins.auxilor.io/all-plugins/custom-gui-slots
custom-slots: [ ]
level-gui:
rows: 6
@@ -210,6 +213,9 @@ level-gui:
row: 6
column: 5
# Custom GUI slots; see here for a how-to: https://plugins.auxilor.io/all-plugins/custom-gui-slots
custom-slots: [ ]
pet-entity:
name: "%player%&f's %pet%&f (Lvl. %level%)"

View File

@@ -1,4 +1,4 @@
#libreforge-updater
#Mon Sep 26 18:28:24 BST 2022
version=1.42.0
version=1.43.0
plugin-name=EcoPets