From baa666669cfa45c2ad8da3aad05fc25d5cf39b85 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Wed, 21 Nov 2018 23:54:18 +0800 Subject: [PATCH] Remove old depend, now only offical support 1.12.2+ Former-commit-id: 5be32cf6ff8027fce6e67ae160381c43507b03e6 [formerly 644fb8c3789a70657b8b06ce9b0d302cc674ab98] Former-commit-id: 7d27683b853753f43a47c56fe292df288aff5569 --- ...ot-1.10.2-R0.1-SNAPSHOT.jar.REMOVED.git-id | 1 - ...ot-1.11.2-R0.1-SNAPSHOT.jar.REMOVED.git-id | 1 - lib/spigot-1.13-SNAPSHOT.jar.REMOVED.git-id | 1 - ...got-1.9.4-R0.1-SNAPSHOT.jar.REMOVED.git-id | 1 - pom.xml | 35 ------------------- .../quickshop/Shop/ContainerShop.java | 3 +- 6 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 lib/spigot-1.10.2-R0.1-SNAPSHOT.jar.REMOVED.git-id delete mode 100644 lib/spigot-1.11.2-R0.1-SNAPSHOT.jar.REMOVED.git-id delete mode 100644 lib/spigot-1.13-SNAPSHOT.jar.REMOVED.git-id delete mode 100644 lib/spigot-1.9.4-R0.1-SNAPSHOT.jar.REMOVED.git-id diff --git a/lib/spigot-1.10.2-R0.1-SNAPSHOT.jar.REMOVED.git-id b/lib/spigot-1.10.2-R0.1-SNAPSHOT.jar.REMOVED.git-id deleted file mode 100644 index f90faa02c..000000000 --- a/lib/spigot-1.10.2-R0.1-SNAPSHOT.jar.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -62fb8921ac38295b6604155b106322d330c2f9ee \ No newline at end of file diff --git a/lib/spigot-1.11.2-R0.1-SNAPSHOT.jar.REMOVED.git-id b/lib/spigot-1.11.2-R0.1-SNAPSHOT.jar.REMOVED.git-id deleted file mode 100644 index 62ee21d20..000000000 --- a/lib/spigot-1.11.2-R0.1-SNAPSHOT.jar.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -48a4fb02868412b63d322b9145bdb2bea4f2a9ee \ No newline at end of file diff --git a/lib/spigot-1.13-SNAPSHOT.jar.REMOVED.git-id b/lib/spigot-1.13-SNAPSHOT.jar.REMOVED.git-id deleted file mode 100644 index 38e44e83c..000000000 --- a/lib/spigot-1.13-SNAPSHOT.jar.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -5a1636ef06767089af7a7749f558a1b1f881e141 \ No newline at end of file diff --git a/lib/spigot-1.9.4-R0.1-SNAPSHOT.jar.REMOVED.git-id b/lib/spigot-1.9.4-R0.1-SNAPSHOT.jar.REMOVED.git-id deleted file mode 100644 index 6d5b8ba9f..000000000 --- a/lib/spigot-1.9.4-R0.1-SNAPSHOT.jar.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -80f0641ce9b4c8926ac16f38be1a697729b70d10 \ No newline at end of file diff --git a/pom.xml b/pom.xml index eceb7bce5..45443d5b7 100644 --- a/pom.xml +++ b/pom.xml @@ -91,20 +91,6 @@ system ${basedir}/lib/Vault-1.6.10.jar - - org.bukkit.craftbukkit.v1_13_R1 - spigot - v1_13_R1 - system - ${basedir}/lib/spigot-1.13-SNAPSHOT.jar - - - - - - - - org.bukkit.craftbukkit.v1_13_R2 spigot @@ -119,27 +105,6 @@ system ${basedir}/lib/spigot-1.12.2-R0.1-SNAPSHOT-b1648.jar - - org.bukkit.craftbukkit.v1_11_R2 - spigot - v1_11_R2 - system - ${basedir}/lib/spigot-1.11.2-R0.1-SNAPSHOT.jar - - - org.bukkit.craftbukkit.v1_10_R1 - spigot - v1_10_R1 - system - ${basedir}/lib/spigot-1.10.2-R0.1-SNAPSHOT.jar - - - org.bukkit.craftbukkit.v1_9_R2 - spigot - v1_9_R2 - system - ${basedir}/lib/spigot-1.9.4-R0.1-SNAPSHOT.jar - com.onarandombox.MultiverseCore Multiverse-Core diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java b/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java index 93b6dff31..6312d1177 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java @@ -20,6 +20,7 @@ import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.InventoryHolder; import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.meta.Damageable; import org.maxgamer.quickshop.QuickShop; import org.maxgamer.quickshop.Database.DatabaseHelper; import org.maxgamer.quickshop.Util.MsgUtil; @@ -213,7 +214,7 @@ public class ContainerShop implements Shop { * @return The durability of the item */ public short getDurability() { - return this.item.getDurability(); + return (short) ((Damageable)this.item.getItemMeta()).getDamage(); } /**