Skip to content

Commit

Permalink
Fix HyperConomy support
Browse files Browse the repository at this point in the history
Not sure why the buttload of abstraction... Wouldn't it be easier to
have a core?
  • Loading branch information
Morphan1 committed Dec 8, 2014
1 parent 934a7cb commit 30e7d3c
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -12,10 +12,9 @@
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.scheduler.BukkitRunnable;
import regalowl.hyperconomy.HyperConomy;
import regalowl.hyperconomy.account.HyperPlayer;
import regalowl.hyperconomy.bukkit.BukkitConnector;
import regalowl.hyperconomy.event.HyperEventHandler;
import regalowl.hyperconomy.event.TransactionEvent;
import regalowl.hyperconomy.inventory.HItemStack;
import regalowl.hyperconomy.transaction.PlayerTransaction;
import regalowl.hyperconomy.transaction.TransactionResponse;
Expand Down Expand Up @@ -46,8 +45,8 @@ public HyperConomySupport() {
new BukkitRunnable() {
@Override
public void run() {
HyperConomy hyperConomy = Supported.get("HYPERCONOMY").getPlugin();
HyperEventHandler eventHandler = hyperConomy.getHyperEventHandler();
BukkitConnector hyperConomy = Supported.get("HYPERCONOMY").getPlugin();
HyperEventHandler eventHandler = hyperConomy.getHC().getHyperEventHandler();
eventHandler.registerListener(this);
}
}.runTaskLaterAsynchronously(Depenizen.getCurrentInstance(), 1);
Expand Down

0 comments on commit 30e7d3c

Please sign in to comment.