Final Push, ready for sale

This commit is contained in:
Kiran Hart 2018-08-25 17:50:57 -04:00
parent 940217f53b
commit fc3b974d5f
7 changed files with 16 additions and 18 deletions

View File

@ -4,7 +4,7 @@
<groupId>com.shadebyte</groupId> <groupId>com.shadebyte</groupId>
<artifactId>auctionhouse</artifactId> <artifactId>auctionhouse</artifactId>
<name>AuctionHouse</name> <name>AuctionHouse</name>
<version>1.0-SNAPSHOT</version> <version>Production-Test</version>
<description>A premium auction house plugin</description> <description>A premium auction house plugin</description>
<url>https://www.shadebyte.com</url> <url>https://www.shadebyte.com</url>
<build> <build>

View File

@ -6,7 +6,7 @@
<groupId>com.shadebyte</groupId> <groupId>com.shadebyte</groupId>
<artifactId>auctionhouse</artifactId> <artifactId>auctionhouse</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>AuctionHouse</name> <name>AuctionHouse</name>

View File

@ -22,7 +22,7 @@ public class HelpCommand extends SubCommand {
return; return;
} }
for (int i = 0; i <= 7; i++) { for (int i = 0; i <= 8; i++) {
sender.sendMessage(Core.getInstance().getLocale().getMessage("cmd.help." + i)); sender.sendMessage(Core.getInstance().getLocale().getMessage("cmd.help." + i));
} }
} }

View File

@ -16,7 +16,6 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import java.util.Arrays; import java.util.Arrays;
import java.util.concurrent.ThreadLocalRandom;
/** /**
* The current file has been created by Kiran Hart * The current file has been created by Kiran Hart
@ -133,11 +132,7 @@ public class SellCommand extends SubCommand {
discordHook.send(dm); discordHook.send(dm);
} }
if (AuctionAPI.getItemInHand(p).getAmount() >= 2) { AuctionAPI.setItemInHand(p, null);
AuctionAPI.getItemInHand(p).setAmount(AuctionAPI.getItemInHand(p).getAmount() - 1);
} else {
AuctionAPI.setItemInHand(p, null);
}
} }
} else { } else {
p.sendMessage(Core.getInstance().getSettings().getPrefix() + Core.getInstance().getLocale().getMessage(Lang.NOT_A_NUMBER.getNode())); p.sendMessage(Core.getInstance().getSettings().getPrefix() + Core.getInstance().getLocale().getMessage(Lang.NOT_A_NUMBER.getNode()));

View File

@ -45,6 +45,8 @@ public class AllTransactionsGUI implements AGUI {
} catch (Exception e1) { } catch (Exception e1) {
} }
if (slot == 49) p.openInventory(new TransactionSelectGUI().getInventory());
if (slot >= 0 & slot <= 44) { if (slot >= 0 & slot <= 44) {
if (clicked == null || clicked.getType() == Material.AIR) { if (clicked == null || clicked.getType() == Material.AIR) {
return; return;

View File

@ -20,21 +20,21 @@ settings:
#MySql stuff for databases if you want #MySql stuff for databases if you want
database: database:
enabled: true enabled: false
host: 162.241.217.18 host: ""
port: 3306 port: 3306
database: "kiranhar_auctionhouse" database: ""
username: "kiranhar_admin" username: ""
password: "TweetyHart1." password: ""
discord: discord:
enabled: true enabled: false
webhook: "https://discordapp.com/api/webhooks/470085392901734410/_ls7Ps5GzlKqBJlHLaZt6GZgVTKkuwuIuWK1JU5j_pt-DwWhSYAITlI17ePiIuNTmdua" webhook: ""
title: "Auction House" title: "Auction House"
description: "A new item has been listed!" description: "A new item has been listed!"
description-complete: "A transaction has been completed!" description-complete: "A transaction has been completed!"
username: "Auction House" username: "Auction House"
profilepicture: "https://vignette.wikia.nocookie.net/minecraftuniverse/images/2/2c/Gold_Chest_%28M2%29.png/revision/latest?cb=20130121082341" profilepicture: ""
receipt: receipt:
give-on-transaction: true give-on-transaction: true

View File

@ -9,7 +9,8 @@ cmd.help.3 = "&f/&eah help"
cmd.help.4 = "&f/&eah sell" cmd.help.4 = "&f/&eah sell"
cmd.help.5 = "&f/&eah listed" cmd.help.5 = "&f/&eah listed"
cmd.help.6 = "&f/&eah expired" cmd.help.6 = "&f/&eah expired"
cmd.help.7 = "" cmd.help.7 = "&f/&eah transactions"
cmd.help.8 = ""
nopermission = "&cYou do not have permission to do that!" nopermission = "&cYou do not have permission to do that!"
playersonly = "&cOnly player's may use the command!" playersonly = "&cOnly player's may use the command!"