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>
<artifactId>auctionhouse</artifactId>
<name>AuctionHouse</name>
<version>1.0-SNAPSHOT</version>
<version>Production-Test</version>
<description>A premium auction house plugin</description>
<url>https://www.shadebyte.com</url>
<build>

View File

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

View File

@ -22,7 +22,7 @@ public class HelpCommand extends SubCommand {
return;
}
for (int i = 0; i <= 7; i++) {
for (int i = 0; i <= 8; 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 java.util.Arrays;
import java.util.concurrent.ThreadLocalRandom;
/**
* The current file has been created by Kiran Hart
@ -133,11 +132,7 @@ public class SellCommand extends SubCommand {
discordHook.send(dm);
}
if (AuctionAPI.getItemInHand(p).getAmount() >= 2) {
AuctionAPI.getItemInHand(p).setAmount(AuctionAPI.getItemInHand(p).getAmount() - 1);
} else {
AuctionAPI.setItemInHand(p, null);
}
AuctionAPI.setItemInHand(p, null);
}
} else {
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) {
}
if (slot == 49) p.openInventory(new TransactionSelectGUI().getInventory());
if (slot >= 0 & slot <= 44) {
if (clicked == null || clicked.getType() == Material.AIR) {
return;

View File

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

View File

@ -9,7 +9,8 @@ cmd.help.3 = "&f/&eah help"
cmd.help.4 = "&f/&eah sell"
cmd.help.5 = "&f/&eah listed"
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!"
playersonly = "&cOnly player's may use the command!"