Update 1.4, this resolves SD-990

This commit is contained in:
Niels Vergucht 2018-12-28 21:51:16 +01:00
parent b8f92dc8af
commit 1d58d31a2b
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<groupId>com.songoda</groupId>
<artifactId>EpicBuckets</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.3</version>
<version>1.4</version>
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
@ -122,7 +122,7 @@
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
</repository>
<repository>
<id>33_aikar</id>
<id>3_aikar</id>
<url>https://repo.aikar.co/content/groups/aikar/</url>
</repository>
<repository>

View File

@ -39,6 +39,7 @@ public class CommandGenbucket extends BaseCommand {
sender.sendMessage(ChatUtil.colorString("&f/epicbuckets shop: &7opens up the genbucket shop"));
sender.sendMessage(ChatUtil.colorString("&f/epicbuckets admin toggle: &7toggle your status to receive genbucket placement notifications"));
sender.sendMessage(ChatUtil.colorString("&f/epicbuckets admin panel: &7opens up the panel with all active genbuckets"));
sender.sendMessage(ChatUtil.colorString("&f/epicbuckets give <player> <trait> <genItem> <amount> [cost]: &7gives the player a specific genbucket and, if supplied, withdraw the cost"));
}
@Subcommand("give")
@ -66,7 +67,7 @@ public class CommandGenbucket extends BaseCommand {
EpicBuckets.getInstance().getShopManager().buyFromShop(player, subShop, Integer.parseInt(amount));
return;
}
EpicBuckets.getInstance().getShopManager().giveGenbucketToPlayer(player, subShop, 0);
EpicBuckets.getInstance().getShopManager().giveGenbucketToPlayer(player, subShop, Integer.parseInt(amount));
return;
}