9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-28 19:39:14 +00:00

Changed all ItemAdder things to ItemsAdder

This commit is contained in:
HeroBrineGoat
2022-01-18 19:45:02 -05:00
parent 14617fdaff
commit 280018fb9f
2 changed files with 4 additions and 4 deletions

View File

@@ -46,10 +46,10 @@ public class HookManager {
final Map<String, ItemHook> itemHookMap = new HashMap<>();
final OraxenHook oraxenHook = new OraxenHook();
final ItemsAdderHook itemAdderHook = new ItemsAdderHook();
final ItemsAdderHook itemsAdderHook = new ItemsAdderHook();
if (pluginManager.getPlugin("Oraxen") != null) itemHookMap.put(oraxenHook.getIdentifier(), oraxenHook);
if (pluginManager.getPlugin("ItemAdder") != null) {
itemHookMap.put(itemAdderHook.getIdentifier(), itemAdderHook);
if (pluginManager.getPlugin("ItemsAdder") != null) {
itemHookMap.put(itemsAdderHook.getIdentifier(), itemsAdderHook);
this.plugin.getServer().getPluginManager().registerEvents(new ItemsAdderListener(this.plugin), this.plugin);
}

View File

@@ -15,7 +15,7 @@ public class ItemsAdderListener implements Listener {
}
@EventHandler
public void onItemAdderLoad(final ItemsAdderLoadDataEvent event) {
public void onItemsAdderLoad(final ItemsAdderLoadDataEvent event) {
if (this.loaded) return;
this.plugin.load();
this.loaded = true;