From c6c192f938d4591131ef7c6bd2411b204e828479 Mon Sep 17 00:00:00 2001 From: Hassan Syyid Date: Sun, 6 Dec 2015 08:57:13 -0500 Subject: [PATCH] bug fixes --- src/main/java/io/github/hsyyid/adminshop/AdminShop.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/hsyyid/adminshop/AdminShop.java b/src/main/java/io/github/hsyyid/adminshop/AdminShop.java index a811045..e97efc6 100644 --- a/src/main/java/io/github/hsyyid/adminshop/AdminShop.java +++ b/src/main/java/io/github/hsyyid/adminshop/AdminShop.java @@ -297,7 +297,7 @@ public void onPlayerInteractBlock(InteractBlockEvent event) double price = thisShop.getPrice(); String itemName = thisShop.getItemName(); - TotalEconomy totalEconomy = (TotalEconomy) game.getPluginManager().getPlugin("TotalEconomy").get().getInstance(); + TotalEconomy totalEconomy = (TotalEconomy) game.getPluginManager().getPlugin("TotalEconomy").get().getInstance().get(); AccountManager accountManager = totalEconomy.getAccountManager(); BigDecimal amount = new BigDecimal(price); @@ -359,7 +359,7 @@ public void onPlayerInteractBlock(InteractBlockEvent event) double price = thisBuyShop.getPrice(); String itemName = thisBuyShop.getItemName(); - TotalEconomy totalEconomy = (TotalEconomy) game.getPluginManager().getPlugin("TotalEconomy").get().getInstance(); + TotalEconomy totalEconomy = (TotalEconomy) game.getPluginManager().getPlugin("TotalEconomy").get().getInstance().get(); AccountManager accountManager = totalEconomy.getAccountManager(); BigDecimal amount = new BigDecimal(price); int quantityInHand = 0;