diff --git a/pom.xml b/pom.xml index c23ae5d..b879179 100644 --- a/pom.xml +++ b/pom.xml @@ -126,7 +126,7 @@ ca.tweetzy tweetycore - 1.0.0 + 2.0.0 com.github.MilkBowl diff --git a/src/main/java/ca/tweetzy/auctionhouse/AuctionHouse.java b/src/main/java/ca/tweetzy/auctionhouse/AuctionHouse.java index 5fd84b5..40b1948 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/AuctionHouse.java +++ b/src/main/java/ca/tweetzy/auctionhouse/AuctionHouse.java @@ -55,7 +55,6 @@ public class AuctionHouse extends TweetyPlugin { @Override public void onPluginEnable() { TweetyCore.registerPlugin(this, (int) PluginID.AUCTION_HOUSE.getTweetzyID(), "CHEST"); - TweetyCore.initEvents(this); // Check server version if (ServerVersion.isServerVersionAtOrBelow(ServerVersion.V1_7)) { diff --git a/src/main/java/ca/tweetzy/auctionhouse/helpers/PlayerHelper.java b/src/main/java/ca/tweetzy/auctionhouse/helpers/PlayerHelper.java index 1d356ac..997b78b 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/helpers/PlayerHelper.java +++ b/src/main/java/ca/tweetzy/auctionhouse/helpers/PlayerHelper.java @@ -13,6 +13,6 @@ import org.bukkit.inventory.ItemStack; public class PlayerHelper { public static ItemStack getHeldItem(Player player) { - return ServerVersion.isServerVersionAbove(ServerVersion.V1_8) ? player.getInventory().getItemInHand() : player.getInventory().getItemInMainHand(); + return ServerVersion.isServerVersionAbove(ServerVersion.V1_8) ? player.getInventory().getItemInMainHand() : player.getInventory().getItemInHand(); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index d68db46..24edf69 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -24,6 +24,7 @@ permissions: auctionhouse.cmd.expired: true auctionhouse.cmd.settings: true auctionhouse.cmd.transactions: true + auctionhouse.cmd.search: true auctionhouse.cmd: description: Allows the user to use /ah default: op @@ -41,4 +42,7 @@ permissions: default: op auctionhouse.cmd.transactions: description: Allows the user to open the transactions menu + default: op + auctionhouse.cmd.search: + description: Allows the user to search for auction items. default: op \ No newline at end of file