Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyyid committed Dec 6, 2015
1 parent 60f2746 commit c6c192f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/github/hsyyid/adminshop/AdminShop.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c6c192f

Please sign in to comment.