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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user