v1.2.7 Update

Added:
- 1.13-1.13.2 support has been added.
This commit is contained in:
BadBones69 2018-11-08 10:18:11 -05:00
parent 6e50150cfc
commit 901563ddf5
8 changed files with 285 additions and 85 deletions

View File

@ -6,7 +6,7 @@
<groupId>me.badbones69</groupId>
<artifactId>crazyauctions</artifactId>
<version>1.2.6</version>
<version>1.2.7</version>
<repositories>
<repository>
@ -27,7 +27,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.12.2-R0.1-SNAPSHOT</version>
<version>1.13.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
@ -83,9 +83,9 @@
<include>me.badbones69:*</include>
</includes>
</artifactSet>
<!--<finalName>${project.artifactId}[v${project.version}]</finalName>-->
<finalName>Crazy Auctions[v${project.version}-Dev-Build-v1]</finalName>
<!--<outputFile>/Users/badbones/Desktop/Stuff/Server/plugins/Crazy Auctions[v${project.version}].jar</outputFile>-->
<outputFile>/Users/badbones/Plugins/Public Plugins/Crazy Auctions/Crazy Auctions[v${project.version}].jar</outputFile>
<!--<outputFile>/Users/badbones/Plugins/Public Plugins/Crazy Auctions/Crazy Auctions[v${project.version}].jar</outputFile>-->
</configuration>
<executions>
<execution>

View File

@ -169,7 +169,7 @@ public class Main extends JavaPlugin implements Listener {
player.sendMessage(Messages.DOSENT_HAVE_ITEM_IN_HAND.getMessage());
return false;
}
Long price = Long.parseLong(args[1]);
long price = Long.parseLong(args[1]);
if(args[0].equalsIgnoreCase("Bid")) {
if(price < Files.CONFIG.getFile().getLong("Settings.Minimum-Bid-Price")) {
player.sendMessage(Messages.BID_PRICE_TO_LOW.getMessage());
@ -253,6 +253,8 @@ public class Main extends JavaPlugin implements Listener {
}
}
String seller = player.getName();
// For testing as another player
//String seller = "Test-Account";
int num = 1;
Random r = new Random();
for(; Files.DATA.getFile().contains("Items." + num); num++) ;
@ -329,6 +331,37 @@ public class Main extends JavaPlugin implements Listener {
private ArrayList<Material> getDamageableItems() {
ArrayList<Material> ma = new ArrayList<>();
if(Version.getCurrentVersion().isNewer(Version.v1_12_R1)) {
ma.add(Material.matchMaterial("GOLDEN_HELMET"));
ma.add(Material.matchMaterial("GOLDEN_CHESTPLATE"));
ma.add(Material.matchMaterial("GOLDEN_LEGGINGS"));
ma.add(Material.matchMaterial("GOLDEN_BOOTS"));
ma.add(Material.matchMaterial("WOODEN_SWORD"));
ma.add(Material.matchMaterial("WOODEN_AXE"));
ma.add(Material.matchMaterial("WOODEN_PICKAXE"));
ma.add(Material.matchMaterial("WOODEN_AXE"));
ma.add(Material.matchMaterial("WOODEN_SHOVEL"));
ma.add(Material.matchMaterial("STONE_SHOVEL"));
ma.add(Material.matchMaterial("IRON_SHOVEL"));
ma.add(Material.matchMaterial("DIAMOND_SHOVEL"));
ma.add(Material.matchMaterial("WOODEN_HOE"));
ma.add(Material.matchMaterial("GOLDEN_HOE"));
}else {
ma.add(Material.matchMaterial("GOLD_HELMET"));
ma.add(Material.matchMaterial("GOLD_CHESTPLATE"));
ma.add(Material.matchMaterial("GOLD_LEGGINGS"));
ma.add(Material.matchMaterial("GOLD_BOOTS"));
ma.add(Material.matchMaterial("WOOD_SWORD"));
ma.add(Material.matchMaterial("WOOD_AXE"));
ma.add(Material.matchMaterial("WOOD_PICKAXE"));
ma.add(Material.matchMaterial("WOOD_AXE"));
ma.add(Material.matchMaterial("WOOD_SPADE"));
ma.add(Material.matchMaterial("STONE_SPADE"));
ma.add(Material.matchMaterial("IRON_SPADE"));
ma.add(Material.matchMaterial("DIAMOND_SPADE"));
ma.add(Material.matchMaterial("WOOD_HOE"));
ma.add(Material.matchMaterial("GOLD_HOE"));
}
ma.add(Material.DIAMOND_HELMET);
ma.add(Material.DIAMOND_CHESTPLATE);
ma.add(Material.DIAMOND_LEGGINGS);
@ -337,10 +370,6 @@ public class Main extends JavaPlugin implements Listener {
ma.add(Material.CHAINMAIL_CHESTPLATE);
ma.add(Material.CHAINMAIL_LEGGINGS);
ma.add(Material.CHAINMAIL_BOOTS);
ma.add(Material.GOLD_HELMET);
ma.add(Material.GOLD_CHESTPLATE);
ma.add(Material.GOLD_LEGGINGS);
ma.add(Material.GOLD_BOOTS);
ma.add(Material.IRON_HELMET);
ma.add(Material.IRON_CHESTPLATE);
ma.add(Material.IRON_LEGGINGS);
@ -350,27 +379,18 @@ public class Main extends JavaPlugin implements Listener {
ma.add(Material.LEATHER_LEGGINGS);
ma.add(Material.LEATHER_BOOTS);
ma.add(Material.BOW);
ma.add(Material.WOOD_SWORD);
ma.add(Material.STONE_SWORD);
ma.add(Material.IRON_SWORD);
ma.add(Material.DIAMOND_SWORD);
ma.add(Material.WOOD_AXE);
ma.add(Material.STONE_AXE);
ma.add(Material.IRON_AXE);
ma.add(Material.DIAMOND_AXE);
ma.add(Material.WOOD_PICKAXE);
ma.add(Material.STONE_PICKAXE);
ma.add(Material.IRON_PICKAXE);
ma.add(Material.DIAMOND_PICKAXE);
ma.add(Material.WOOD_AXE);
ma.add(Material.STONE_AXE);
ma.add(Material.IRON_AXE);
ma.add(Material.DIAMOND_AXE);
ma.add(Material.WOOD_SPADE);
ma.add(Material.STONE_SPADE);
ma.add(Material.IRON_SPADE);
ma.add(Material.DIAMOND_SPADE);
ma.add(Material.WOOD_HOE);
ma.add(Material.STONE_HOE);
ma.add(Material.IRON_HOE);
ma.add(Material.DIAMOND_HOE);

View File

@ -3,6 +3,7 @@ package me.badbones69.crazyauctions;
import me.badbones69.crazyauctions.api.FileManager;
import me.badbones69.crazyauctions.api.FileManager.Files;
import me.badbones69.crazyauctions.api.Messages;
import me.badbones69.crazyauctions.api.Version;
import me.badbones69.crazyauctions.api.events.AuctionWinBidEvent;
import me.badbones69.crazyauctions.currency.CurrencyManager;
import org.bukkit.*;
@ -50,7 +51,12 @@ public class Methods {
try {
item = new ItemStack(m, amount, (short) ty);
}catch(Exception e) {
item = new ItemStack(Material.STAINED_CLAY, 1, (short) 14);
if(Version.getCurrentVersion().isNewer(Version.v1_12_R1)) {
item = new ItemStack(Material.matchMaterial("RED_TERRACOTTA"), 1);
}else {
item = new ItemStack(Material.matchMaterial("STAINED_CLAY"), 1, (short) 14);
}
}
return item;
}
@ -67,7 +73,12 @@ public class Methods {
try {
item = new ItemStack(m, amount, (short) ty);
}catch(Exception e) {
item = new ItemStack(Material.STAINED_CLAY, 1, (short) 14);
if(Version.getCurrentVersion().isNewer(Version.v1_12_R1)) {
item = new ItemStack(Material.matchMaterial("RED_TERRACOTTA"), 1);
}else {
item = new ItemStack(Material.matchMaterial("STAINED_CLAY"), 1, (short) 14);
}
}
ItemMeta me = item.getItemMeta();
me.setDisplayName(color(name));
@ -88,7 +99,12 @@ public class Methods {
try {
item = new ItemStack(m, amount, (short) ty);
}catch(Exception e) {
item = new ItemStack(Material.STAINED_CLAY, 1, (short) 14);
if(Version.getCurrentVersion().isNewer(Version.v1_12_R1)) {
item = new ItemStack(Material.matchMaterial("RED_TERRACOTTA"), 1);
}else {
item = new ItemStack(Material.matchMaterial("STAINED_CLAY"), 1, (short) 14);
}
}
ItemMeta me = item.getItemMeta();
me.setDisplayName(color(name));
@ -400,7 +416,7 @@ public class Methods {
}
public static String getPrice(String ID, Boolean Expired) {
Long price = 0L;
long price = 0L;
if(Expired) {
if(Files.DATA.getFile().contains("OutOfTime/Cancelled." + ID + ".Price")) {
price = Files.DATA.getFile().getLong("OutOfTime/Cancelled." + ID + ".Price");

View File

@ -52,6 +52,17 @@ public enum Category {
private static ArrayList<Material> getArmor() {
ArrayList<Material> ma = new ArrayList<>();
if(Version.getCurrentVersion().isNewer(Version.v1_12_R1)) {
ma.add(Material.matchMaterial("GOLDEN_HELMET"));
ma.add(Material.matchMaterial("GOLDEN_CHESTPLATE"));
ma.add(Material.matchMaterial("GOLDEN_LEGGINGS"));
ma.add(Material.matchMaterial("GOLDEN_BOOTS"));
}else {
ma.add(Material.matchMaterial("GOLD_HELMET"));
ma.add(Material.matchMaterial("GOLD_CHESTPLATE"));
ma.add(Material.matchMaterial("GOLD_LEGGINGS"));
ma.add(Material.matchMaterial("GOLD_BOOTS"));
}
ma.add(Material.DIAMOND_HELMET);
ma.add(Material.DIAMOND_CHESTPLATE);
ma.add(Material.DIAMOND_LEGGINGS);
@ -60,10 +71,6 @@ public enum Category {
ma.add(Material.CHAINMAIL_CHESTPLATE);
ma.add(Material.CHAINMAIL_LEGGINGS);
ma.add(Material.CHAINMAIL_BOOTS);
ma.add(Material.GOLD_HELMET);
ma.add(Material.GOLD_CHESTPLATE);
ma.add(Material.GOLD_LEGGINGS);
ma.add(Material.GOLD_BOOTS);
ma.add(Material.IRON_HELMET);
ma.add(Material.IRON_CHESTPLATE);
ma.add(Material.IRON_LEGGINGS);
@ -77,19 +84,37 @@ public enum Category {
private static ArrayList<Material> getTools() {
ArrayList<Material> ma = new ArrayList<>();
ma.add(Material.WOOD_PICKAXE);
if(Version.getCurrentVersion().isNewer(Version.v1_12_R1)) {
ma.add(Material.matchMaterial("WOODEN_PICKAXE"));
ma.add(Material.matchMaterial("WOODEN_AXE"));
ma.add(Material.matchMaterial("WOODEN_SHOVEL"));
ma.add(Material.matchMaterial("WOODEN_HOE"));
ma.add(Material.matchMaterial("GOLDEN_PICKAXE"));
ma.add(Material.matchMaterial("GOLDEN_AXE"));
ma.add(Material.matchMaterial("GOLDEN_SHOVEL"));
ma.add(Material.matchMaterial("GOLDEN_HOE"));
ma.add(Material.matchMaterial("STONE_SHOVEL"));
ma.add(Material.matchMaterial("IRON_SHOVEL"));
ma.add(Material.matchMaterial("DIAMOND_SHOVEL"));
}else {
ma.add(Material.matchMaterial("WOOD_PICKAXE"));
ma.add(Material.matchMaterial("WOOD_AXE"));
ma.add(Material.matchMaterial("WOOD_SPADE"));
ma.add(Material.matchMaterial("WOOD_HOE"));
ma.add(Material.matchMaterial("GOLD_PICKAXE"));
ma.add(Material.matchMaterial("GOLD_AXE"));
ma.add(Material.matchMaterial("GOLD_SPADE"));
ma.add(Material.matchMaterial("GOLD_HOE"));
ma.add(Material.matchMaterial("STONE_SPADE"));
ma.add(Material.matchMaterial("IRON_SPADE"));
ma.add(Material.matchMaterial("DIAMOND_SPADE"));
}
ma.add(Material.STONE_PICKAXE);
ma.add(Material.IRON_PICKAXE);
ma.add(Material.DIAMOND_PICKAXE);
ma.add(Material.WOOD_AXE);
ma.add(Material.STONE_AXE);
ma.add(Material.IRON_AXE);
ma.add(Material.DIAMOND_AXE);
ma.add(Material.WOOD_SPADE);
ma.add(Material.STONE_SPADE);
ma.add(Material.IRON_SPADE);
ma.add(Material.DIAMOND_SPADE);
ma.add(Material.WOOD_HOE);
ma.add(Material.STONE_HOE);
ma.add(Material.IRON_HOE);
ma.add(Material.DIAMOND_HOE);
@ -98,11 +123,20 @@ public enum Category {
private static ArrayList<Material> getWeapons() {
ArrayList<Material> ma = new ArrayList<>();
ma.add(Material.WOOD_SWORD);
if(Version.getCurrentVersion().isNewer(Version.v1_12_R1)) {
ma.add(Material.matchMaterial("WOODEN_SWORD"));
ma.add(Material.matchMaterial("WOODEN_AXE"));
ma.add(Material.matchMaterial("GOLDEN_SWORD"));
ma.add(Material.matchMaterial("GOLDEN_AXE"));
}else {
ma.add(Material.matchMaterial("WOOD_SWORD"));
ma.add(Material.matchMaterial("WOOD_AXE"));
ma.add(Material.matchMaterial("GOLD_SWORD"));
ma.add(Material.matchMaterial("GOLD_AXE"));
}
ma.add(Material.STONE_SWORD);
ma.add(Material.IRON_SWORD);
ma.add(Material.DIAMOND_SWORD);
ma.add(Material.WOOD_AXE);
ma.add(Material.STONE_AXE);
ma.add(Material.IRON_AXE);
ma.add(Material.DIAMOND_AXE);

View File

@ -0,0 +1,121 @@
package me.badbones69.crazyauctions.api;
import org.bukkit.Bukkit;
public enum Version {
TOO_OLD(-1),
v1_7_R1(171), v1_7_R2(172), v1_7_R3(173), v1_7_R4(174),
v1_8_R1(181), v1_8_R2(182), v1_8_R3(183),
v1_9_R1(191), v1_9_R2(192),
v1_10_R1(1101),
v1_11_R1(1111),
v1_12_R1(1121),
v1_13_R1(1131),
TOO_NEW(-2);
private static Version latest;
private Integer versionInteger;
public static Version currentVersion;
private Version(int versionInteger) {
this.versionInteger = versionInteger;
}
/**
*
* @return Get the server's Minecraft version.
*/
public static Version getCurrentVersion() {
if(currentVersion == null) {
String ver = Bukkit.getServer().getClass().getPackage().getName();
int v = Integer.parseInt(ver.substring(ver.lastIndexOf('.') + 1).replaceAll("_", "").replaceAll("R", "").replaceAll("v", ""));
for(Version version : values()) {
if(version.getVersionInteger() == v) {
currentVersion = version;
break;
}
}
if(v > Version.getLatestVersion().getVersionInteger()) {
currentVersion = Version.getLatestVersion();
}
if(currentVersion == null) {
currentVersion = Version.TOO_NEW;
}
}
return currentVersion;
}
/**
*
* @return The server's minecraft version as an integer.
*/
public Integer getVersionInteger() {
return this.versionInteger;
}
/**
* Get the latest version allowed by the Version class.
* @return The latest version.
*/
public static Version getLatestVersion() {
if(latest == null) {
Version v = Version.TOO_OLD;
for(Version version : values()) {
if(version.comparedTo(v) == 1) {
v = version;
}
}
return v;
}else {
return latest;
}
}
/**
* This checks if the current version is older, newer, or is the checked version.
* @param version The version you are checking.
* @return -1 if older, 0 if the same, and 1 if newer.
*/
public Integer comparedTo(Version version) {
int resault = -1;
int current = this.getVersionInteger();
int check = version.getVersionInteger();
if(current > check || check == -2) {// check is newer then current
resault = 1;
}else if(current == check) {// check is the same as current
resault = 0;
}else if(current < check || check == -1) {// check is older then current
resault = -1;
}
return resault;
}
/**
* Checks to see if the current version is newer then the checked version.
* @param version The version you are checking.
* @return True if newer then the checked version and false if the same or older.
*/
public Boolean isNewer(Version version) {
return this.versionInteger > version.versionInteger || this.versionInteger == -2;
}
/**
* Checks to see if the current version is the same as the checked version.
* @param version The version you are checking.
* @return True if both the current and checked version is the same and false if otherwise.
*/
public Boolean isSame(Version version) {
return this.versionInteger.equals(version.versionInteger);
}
/**
* Checks to see if the current version is older then the checked version.
* @param version The version you are checking.
* @return True if older then the checked version and false if the same or newer.
*/
public Boolean isOlder(Version version) {
return this.versionInteger < version.versionInteger || this.versionInteger == -1;
}
}

View File

@ -1,11 +1,8 @@
package me.badbones69.crazyauctions.controllers;
import me.badbones69.crazyauctions.Methods;
import me.badbones69.crazyauctions.api.Category;
import me.badbones69.crazyauctions.api.CrazyAuctions;
import me.badbones69.crazyauctions.api.*;
import me.badbones69.crazyauctions.api.FileManager.Files;
import me.badbones69.crazyauctions.api.Messages;
import me.badbones69.crazyauctions.api.ShopType;
import me.badbones69.crazyauctions.api.events.AuctionBuyEvent;
import me.badbones69.crazyauctions.api.events.AuctionNewBidEvent;
import me.badbones69.crazyauctions.currency.CurrencyManager;
@ -70,7 +67,7 @@ public class GUI implements Listener {
}else {
if(sell == ShopType.SELL) {
for(String l : config.getStringList("Settings.GUISettings.SellingItemLore")) {
lore.add(l.replaceAll("%Price%", Methods.getPrice(i, false)).replaceAll("%price%", Methods.getPrice(i, false)).replaceAll("%Seller%", data.getString("Items." + i + ".Seller")).replaceAll("%seller%", data.getString("Items." + i + ".Seller")));
lore.add(l.replaceAll("%Price%", Methods.getPrice(i, false)).replaceAll("%price%", Methods.getPrice(i, false)).replaceAll("%Seller%", data.getString("Items." + i + ".Seller")).replaceAll("%seller%", data.getString("Items." + i + ".Seller")).replaceAll("%Time%", Methods.convertToTime(data.getLong("Items." + i + ".Time-Till-Expire"))).replaceAll("%time%", Methods.convertToTime(data.getLong("Items." + i + ".Time-Till-Expire"))));
}
items.add(Methods.addLore(data.getItemStack("Items." + i + ".Item").clone(), lore));
ID.add(data.getInt("Items." + i + ".StoreID"));
@ -302,7 +299,7 @@ public class GUI implements Listener {
ItemStack item = data.getItemStack("Items." + ID + ".Item");
List<String> lore = new ArrayList<>();
for(String l : config.getStringList("Settings.GUISettings.SellingLore")) {
lore.add(l.replaceAll("%Price%", Methods.getPrice(ID, false)).replaceAll("%price%", Methods.getPrice(ID, false)).replaceAll("%Seller%", data.getString("Items." + ID + ".Seller")).replaceAll("%seller%", data.getString("Items." + ID + ".Seller")));
lore.add(l.replaceAll("%Price%", Methods.getPrice(ID, false)).replaceAll("%price%", Methods.getPrice(ID, false)).replaceAll("%Seller%", data.getString("Items." + ID + ".Seller")).replaceAll("%seller%", data.getString("Items." + ID + ".Seller")).replaceAll("%Time%", Methods.convertToTime(data.getLong("Items." + l + ".Time-Till-Expire"))).replaceAll("%time%", Methods.convertToTime(data.getLong("Items." + l + ".Time-Till-Expire"))));
}
inv.setItem(4, Methods.addLore(item.clone(), lore));
IDs.put(player, ID);
@ -320,15 +317,26 @@ public class GUI implements Listener {
}
Inventory inv = Bukkit.createInventory(null, 27, Methods.color(config.getString("Settings.Bidding-On-Item")));
if(!bidding.containsKey(player)) bidding.put(player, 0);
inv.setItem(9, Methods.makeItem("160:5", 1, "&a+1"));
inv.setItem(10, Methods.makeItem("160:5", 1, "&a+10"));
inv.setItem(11, Methods.makeItem("160:5", 1, "&a+100"));
inv.setItem(12, Methods.makeItem("160:5", 1, "&a+1000"));
if(Version.getCurrentVersion().isNewer(Version.v1_12_R1)) {
inv.setItem(9, Methods.makeItem("LIME_STAINED_GLASS_PANE", 1, "&a+1"));
inv.setItem(10, Methods.makeItem("LIME_STAINED_GLASS_PANE", 1, "&a+10"));
inv.setItem(11, Methods.makeItem("LIME_STAINED_GLASS_PANE", 1, "&a+100"));
inv.setItem(12, Methods.makeItem("LIME_STAINED_GLASS_PANE", 1, "&a+1000"));
inv.setItem(14, Methods.makeItem("RED_STAINED_GLASS_PANE", 1, "&c-1000"));
inv.setItem(15, Methods.makeItem("RED_STAINED_GLASS_PANE", 1, "&c-100"));
inv.setItem(16, Methods.makeItem("RED_STAINED_GLASS_PANE", 1, "&c-10"));
inv.setItem(17, Methods.makeItem("RED_STAINED_GLASS_PANE", 1, "&c-1"));
}else {
inv.setItem(9, Methods.makeItem("160:5", 1, "&a+1"));
inv.setItem(10, Methods.makeItem("160:5", 1, "&a+10"));
inv.setItem(11, Methods.makeItem("160:5", 1, "&a+100"));
inv.setItem(12, Methods.makeItem("160:5", 1, "&a+1000"));
inv.setItem(14, Methods.makeItem("160:14", 1, "&c-1000"));
inv.setItem(15, Methods.makeItem("160:14", 1, "&c-100"));
inv.setItem(16, Methods.makeItem("160:14", 1, "&c-10"));
inv.setItem(17, Methods.makeItem("160:14", 1, "&c-1"));
}
inv.setItem(13, getBiddingGlass(player, ID));
inv.setItem(14, Methods.makeItem("160:14", 1, "&c-1000"));
inv.setItem(15, Methods.makeItem("160:14", 1, "&c-100"));
inv.setItem(16, Methods.makeItem("160:14", 1, "&c-10"));
inv.setItem(17, Methods.makeItem("160:14", 1, "&c-1"));
inv.setItem(22, Methods.makeItem(config.getString("Settings.GUISettings.OtherSettings.Bid.Item"), 1, config.getString("Settings.GUISettings.OtherSettings.Bid.Name"), config.getStringList("Settings.GUISettings.OtherSettings.Bid.Lore")));
inv.setItem(4, getBiddingItem(player, ID));
@ -650,7 +658,7 @@ public class GUI implements Listener {
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, () -> inv.setItem(slot, item), 3 * 20);
return;
}
Long cost = data.getLong("Items." + i + ".Price");
long cost = data.getLong("Items." + i + ".Price");
if(CurrencyManager.getMoney(player) < cost) {
String it = config.getString("Settings.GUISettings.OtherSettings.Cant-Afford.Item");
String name = config.getString("Settings.GUISettings.OtherSettings.Cant-Afford.Name");

View File

@ -56,7 +56,7 @@ Settings:
- '&7-------------------------'
Category-Settings:
Armor:
Item: '315'
Item: 'GOLDEN_CHESTPLATE'
Toggle: true
Slot: 11
Name: '&6&lArmor'
@ -64,7 +64,7 @@ Settings:
- '&7This category contains all'
- '&7armor that is currently being sold.'
Weapons:
Item: '283'
Item: 'GOLDEN_SWORD'
Toggle: true
Slot: 12
Name: '&6&lWeapons'
@ -72,7 +72,7 @@ Settings:
- '&7This category contains all'
- '&7weapons that is currently being sold.'
Tools:
Item: '285'
Item: 'GOLDEN_PICKAXE'
Toggle: true
Slot: 13
Name: '&6&lTools'
@ -80,7 +80,7 @@ Settings:
- '&7This category contains all'
- '&7tools that is currently being sold.'
Food:
Item: '322'
Item: 'GOLDEN_APPLE'
Toggle: true
Slot: 14
Name: '&6&lFood'
@ -88,7 +88,7 @@ Settings:
- '&7This category contains all'
- '&7food that is currently being sold.'
Potions:
Item: '373:8227'
Item: 'POTION'
Toggle: true
Slot: 15
Name: '&6&lPotions'
@ -96,7 +96,7 @@ Settings:
- '&7This category contains all'
- '&7potions that is currently being sold.'
Blocks:
Item: '2'
Item: 'GRASS_BLOCK'
Toggle: true
Slot: 16
Name: '&6&lBlocks'
@ -104,7 +104,7 @@ Settings:
- '&7This category contains all'
- '&7blocks that is currently being sold.'
Other:
Item: '371'
Item: 'GOLD_NUGGET'
Toggle: true
Slot: 17
Name: '&6&lOthers'
@ -112,7 +112,7 @@ Settings:
- '&7This category contains all the'
- '&7other items currently being sold.'
None:
Item: '166'
Item: 'BARRIER'
Toggle: true
Slot: 23
Name: '&6&lNone'
@ -121,7 +121,7 @@ Settings:
- '&7items currently being sold.'
OtherSettings: #Other Settings for the GUIs.
SellingItems: #The button for your current items.
Item: '264' #The item that this button is.
Item: 'DIAMOND' #The item that this button is.
Toggle: true #If the item is in the gui or not.
Slot: 46 #The slot it is in. I recommend not changing these. If you do make sure they are still in the bottom row.
Name: '&6Items You are Selling' #Name of the item.
@ -129,7 +129,7 @@ Settings:
- '&aClick here to view all the items you'
- '&aare currently selling on the auction.'
Cancelled/ExpiredItems: #The button for Cancelled/Expired Items.
Item: '394'
Item: 'POISONOUS_POTATO'
Toggle: true
Slot: 47
Name: '&6Collect Expired / Cancelled Items'
@ -137,25 +137,25 @@ Settings:
- '&aClick here to view and collect all of the'
- '&aitems you have cancelled or has expired.'
PreviousPage: #The button for Previous Page.
Item: '339'
Item: 'PAPER'
Toggle: true
Slot: 49
Name: '&6Previous Page'
Lore: {}
Refesh: #The button for Refresh Page.
Item: '175'
Item: 'SUNFLOWER'
Toggle: true
Slot: 50
Name: '&6Refresh Page'
Lore: {}
NextPage: #The button for Next Page.
Item: '339'
Item: 'PAPER'
Toggle: true
Slot: 51
Name: '&6Next Page'
Lore: {}
Category1: #The button for Next Page.
Item: '54'
Item: 'CHEST'
Toggle: true
Slot: 52
Name: '&6Categories'
@ -164,7 +164,7 @@ Settings:
- '&aWant see items in specific categories?'
- '&aClick here to see all categories of items.'
Category2: #The button for Next Page.
Item: '54'
Item: 'CHEST'
Toggle: true
Slot: 48
Name: '&6Categories'
@ -174,7 +174,7 @@ Settings:
- '&aClick here to see all categories of items.'
Bidding/Selling: #Switch between Bidding and Selling.
Selling:
Item: '341'
Item: 'SLIME_BALL'
Toggle: true
Slot: 53
Name: '&6Currently looking at items being sold.'
@ -182,7 +182,7 @@ Settings:
- '&7&l(&6&l!&7&l) &7Click here to see items'
- '&7that you can be bidded on.'
Bidding:
Item: '378'
Item: 'MAGMA_CREAM'
Toggle: true
Slot: 53
Name: '&6Currently looking at items that can be bid on.'
@ -191,7 +191,7 @@ Settings:
- '&7that you can buy at a price.'
WhatIsThis: #The info on all the Books buttons.
SellingShop: #The Book in the main shop.
Item: '340'
Item: 'BOOK'
Toggle: true
Slot: 54
Name: '&6What Is This Page?'
@ -204,7 +204,7 @@ Settings:
- '&amoney by selling items that others'
- '&amay be interested in buying.'
BiddingShop: #The Book in the main shop.
Item: '340'
Item: 'BOOK'
Toggle: true
Slot: 54
Name: '&6What Is This Page?'
@ -217,7 +217,7 @@ Settings:
- '&amake money by bidding off items that others'
- '&amay be interested in bidding on.'
CurrentItems: #The Book in the Current items GUI.
Item: '340'
Item: 'BOOK'
Toggle: true
Slot: 54
Name: '&6What Is This Page?'
@ -229,7 +229,7 @@ Settings:
- '&aYou can cancel and view your listings'
- '&aexpire time here.'
Cancelled/ExpiredItems: #The Book in the Cancelled/Expired Items GUI.
Item: '340'
Item: 'BOOK'
Toggle: true
Slot: 54
Name: '&6What Is This Page?'
@ -242,7 +242,7 @@ Settings:
- '&aJust click on the item and if you have enough'
- '&ainventory space you will receive that item.'
Viewing: #The Book in the Viewing Items GUI.
Item: '340'
Item: 'BOOK'
Toggle: true
Slot: 50
Name: '&6What Is This Page?'
@ -252,7 +252,7 @@ Settings:
- '&aand selling market. You can quickly see'
- '&awhat a specific player is selling.'
Categories: #The Book in the Viewing Items GUI.
Item: '340'
Item: 'BOOK'
Toggle: true
Slot: 54
Name: '&6What Is This Page?'
@ -262,43 +262,43 @@ Settings:
- '&aa category it will open the gui with only'
- '&aitems that belong to that category.'
Back: #The Back Buttons.
Item: '339'
Item: 'PAPER'
Slot: 46
Name: '&6Back'
Return: #The Return Buttons.
Item: '390'
Item: 'FLOWER_POT'
Slot: 50
Name: '&6Return All'
Lore:
- '&aClick here to return all cancelled'
- '&aand expired items to your inventory.'
Confirm: #The Confirm Buttons.
Item: '160:5'
Item: 'LIME_STAINED_GLASS_PANE'
Name: '&aConfirm'
Cancel: #The Cancel Buttons.
Item: '160:14'
Item: 'RED_STAINED_GLASS_PANE'
Name: '&cCancel'
Your-Item: #The item that shows when you try to buy/bid on your item.
Item: '166'
Item: 'BARRIER'
Name: '&cYou Cant Purchase Your Own Item.'
Cant-Afford: #The item that shows when you cant afford this item.
Item: '166'
Item: 'BARRIER'
Name: '&cYou Cant Afford This Item.'
Top-Bidder: #The item for when a player is already the top bidder.
Item: '166'
Item: 'BARRIER'
Name: '&cYou are already the top bidder.'
Bidding: #The item in the middle when bidding on an item.
Item: '160:15'
Item: 'BLACK_STAINED_GLASS_PANE'
Name: '&7Bidding'
Lore:
- '&7<--&aAdd &cRemove&7-->'
- '&9Your Current Bid: &e$%Bid%'
- '&9Current Top Bid: &e$%TopBid%'
Bid: #The button for when you want to confirm your bid.
Item: '160:3'
Item: 'LIGHT_BLUE_STAINED_GLASS_PANE'
Name: '&bBid Now'
Lore:
- '&7Click here to Bid Now.'
BlackList:
- '7'
- '120'
- 'BEDROCK'
- 'END_PORTAL_FRAME'

View File

@ -4,8 +4,9 @@ main: me.badbones69.crazyauctions.Main
website: https://www.spigotmc.org/resources/authors/kicjow.9719/
version: ${version}
depend: [Vault]
api-version: 1.13
description: >
A plugin to auction off items globally.
A plugin to auction off items globally.
commands:
ca:
description: Opens the Crazy Auctions GUI.