Skip to content

Commit b0a9036

Browse files
committed
Merge branch 'update-to-new-zmenu-api'
2 parents ad3ae62 + 8caca22 commit b0a9036

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ dependencies {
2727

2828
compileOnly 'com.github.MilkBowl:VaultAPI:1.7'
2929
compileOnly 'com.github.PlayerNguyen:OptEco:2.1.4b'
30-
compileOnly 'com.github.Maxlego08:zMenu-API:1.0.3.7'
3130
compileOnly 'com.willfp:EcoBits:1.8.4'
3231
compileOnly 'com.bencodez:votingplugin:6.17.2'
3332
compileOnly 'com.github.Emibergo02:RedisEconomy:4.3.19'
@@ -41,6 +40,7 @@ dependencies {
4140
compileOnly files('libs/CoinsEngine-2.4.2.jar')
4241
compileOnly files('libs/nightcore-2.7.1.jar')
4342
compileOnly files('libs/RoyaleEconomyAPI.jar')
43+
compileOnly files('libs/zMenu-API-1.1.0.0.jar')
4444
}
4545
def targetJavaVersion = 8
4646
java {

libs/zMenu-API-1.1.0.0.jar

623 KB
Binary file not shown.

src/main/java/fr/traqueur/currencies/providers/ZMenuItemProvider.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package fr.traqueur.currencies.providers;
22

3-
import fr.maxlego08.menu.MenuItemStack;
43
import fr.maxlego08.menu.api.InventoryManager;
5-
import fr.maxlego08.menu.loader.MenuItemStackLoader;
4+
import fr.maxlego08.menu.api.MenuItemStack;
65
import org.bukkit.OfflinePlayer;
76
import org.bukkit.configuration.file.YamlConfiguration;
87
import org.bukkit.entity.Player;
@@ -19,8 +18,7 @@ public class ZMenuItemProvider extends ItemProvider {
1918
public ZMenuItemProvider(Plugin plugin, File file, String path) {
2019
super(plugin, null);
2120
InventoryManager inventoryManager = plugin.getServer().getServicesManager().getRegistration(InventoryManager.class).getProvider();
22-
MenuItemStackLoader loader = new MenuItemStackLoader(inventoryManager);
23-
this.menuItemStack = loader.load(YamlConfiguration.loadConfiguration(file), path, file);
21+
this.menuItemStack = inventoryManager.loadItemStack(YamlConfiguration.loadConfiguration(file), path, file);
2422
}
2523

2624
@Override

0 commit comments

Comments
 (0)