minimal update to 1.13

This commit is contained in:
mcmonkey 2018-10-12 12:00:54 -07:00
parent 9d8ed3a85b
commit bc1b5a3559
No known key found for this signature in database
GPG Key ID: 2F0F11928478A6F5
6 changed files with 40 additions and 28 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
.project
.settings/
target/
.idea/
*.iml

View File

@ -3,4 +3,6 @@ Blacksmith
A blacksmith plugin for Spigot!
Builds available at: http://ci.citizensnpcs.co/job/Blacksmith/
Backed by Citizens2: https://github.com/CitizensDev/Citizens2

Binary file not shown.

27
pom.xml
View File

@ -6,15 +6,15 @@
<groupId>net.apunch</groupId>
<artifactId>blacksmith</artifactId>
<version>1.12-SNAPSHOT</version>
<version>1.13-SNAPSHOT</version>
<name>Blacksmith</name>
<description>Blacksmith Character for the CitizensAPI</description>
<!-- Properties -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bukkit.version>1.10.2-R0.1-SNAPSHOT</bukkit.version>
<citizensapi.version>2.0.20-SNAPSHOT</citizensapi.version>
<bukkit.version>1.13.1-R0.1-SNAPSHOT</bukkit.version>
<citizensapi.version>2.0.24-SNAPSHOT</citizensapi.version>
<vault.version>1.5.6</vault.version>
<hyperconomy.version>0.975.7-SNAPSHOT</hyperconomy.version>
<build.number>Unknown</build.number>
@ -34,18 +34,14 @@
<id>vault-repo</id>
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
</repository>
<repository>
<id>grokswell-repo</id>
<url>http://www.grokswell.com:8000/repo/</url>
</repository>
</repositories>
<!-- Dependencies -->
<dependencies>
<dependency>
<groupId>net.citizensnpcs</groupId>
<artifactId>citizensapi</artifactId>
<version>2.0.22-SNAPSHOT</version>
<artifactId>citizens</artifactId>
<version>${citizensapi.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
@ -65,12 +61,23 @@
<groupId>regalowl.hyperconomy</groupId>
<artifactId>hyperconomy</artifactId>
<version>${hyperconomy.version}</version>
<scope>provided</scope>
<scope>system</scope>
<systemPath>${project.basedir}/lib/HyperConomy.jar</systemPath>
</dependency>
</dependencies>
<!-- Build information -->
<build>
<defaultGoal>clean package install</defaultGoal>
<resources>
<resource>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>*.yml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>

View File

@ -31,7 +31,6 @@ import regalowl.hyperconomy.bukkit.BukkitConnector;
import regalowl.hyperconomy.inventory.HItemStack;
import regalowl.hyperconomy.tradeobject.TradeObject;
public class BlacksmithPlugin extends JavaPlugin {
public BlacksmithPlugin plugin;
private Settings config;
@ -127,28 +126,28 @@ public class BlacksmithPlugin extends JavaPlugin {
public boolean isTool(ItemStack item) {
switch (item.getType()) {
case WOOD_PICKAXE:
case WOOD_SPADE:
case WOOD_HOE:
case WOOD_SWORD:
case WOOD_AXE:
case WOODEN_PICKAXE:
case WOODEN_SHOVEL:
case WOODEN_HOE:
case WOODEN_SWORD:
case WOODEN_AXE:
case STONE_PICKAXE:
case STONE_SPADE:
case STONE_SHOVEL:
case STONE_HOE:
case STONE_SWORD:
case STONE_AXE:
case GOLD_PICKAXE:
case GOLD_SPADE:
case GOLD_HOE:
case GOLD_SWORD:
case GOLD_AXE:
case GOLDEN_PICKAXE:
case GOLDEN_SHOVEL:
case GOLDEN_HOE:
case GOLDEN_SWORD:
case GOLDEN_AXE:
case IRON_PICKAXE:
case IRON_SPADE:
case IRON_SHOVEL:
case IRON_HOE:
case IRON_SWORD:
case IRON_AXE:
case DIAMOND_PICKAXE:
case DIAMOND_SPADE:
case DIAMOND_SHOVEL:
case DIAMOND_HOE:
case DIAMOND_SWORD:
case DIAMOND_AXE:
@ -172,10 +171,10 @@ public class BlacksmithPlugin extends JavaPlugin {
case CHAINMAIL_CHESTPLATE:
case CHAINMAIL_LEGGINGS:
case CHAINMAIL_BOOTS:
case GOLD_HELMET:
case GOLD_CHESTPLATE:
case GOLD_LEGGINGS:
case GOLD_BOOTS:
case GOLDEN_HELMET:
case GOLDEN_CHESTPLATE:
case GOLDEN_LEGGINGS:
case GOLDEN_BOOTS:
case IRON_HELMET:
case IRON_CHESTPLATE:
case IRON_LEGGINGS:

View File

@ -5,6 +5,8 @@ main: net.apunch.blacksmith.BlacksmithPlugin
depend: [Citizens, Vault]
softdepend: [HyperConomy]
api-version: 1.13
commands:
blacksmithreload:
permission: blacksmith.reload