mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-25 05:55:13 +01:00
bug fix in PlayerHelper
This commit is contained in:
parent
9d7fbe20a0
commit
374051d99b
2
pom.xml
2
pom.xml
@ -126,7 +126,7 @@
|
||||
<dependency>
|
||||
<groupId>ca.tweetzy</groupId>
|
||||
<artifactId>tweetycore</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>2.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.MilkBowl</groupId>
|
||||
|
@ -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)) {
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user