2.110.0 - 1.20.6 support

Took 19 minutes
This commit is contained in:
Kiran Hart 2024-05-01 12:13:23 -04:00
parent ac4b35be02
commit 12d23279eb
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3
9 changed files with 19 additions and 20 deletions

View File

@ -8,7 +8,7 @@
<name>AuctionHouse</name>
<description>The ultimate auction solution for your server</description>
<version>2.109.1</version>
<version>2.110.0</version>
<packaging>jar</packaging>
<properties>
<author>Kiran Hart</author>
@ -102,7 +102,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.20.2-R0.1-SNAPSHOT</version>
<version>1.20.3-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
@ -119,7 +119,7 @@
<dependency>
<groupId>ca.tweetzy</groupId>
<artifactId>tweetycore</artifactId>
<version>3.8.0</version>
<version>3.9.0</version>
</dependency>
<dependency>
<groupId>org.mineacademy.plugin</groupId>
@ -156,7 +156,7 @@
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.10</version>
<version>2.11.5</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -35,7 +35,6 @@ import ca.tweetzy.core.TweetyCore;
import ca.tweetzy.core.TweetyPlugin;
import ca.tweetzy.core.commands.CommandManager;
import ca.tweetzy.core.compatibility.ServerProject;
import ca.tweetzy.core.compatibility.ServerVersion;
import ca.tweetzy.core.configuration.Config;
import ca.tweetzy.core.database.DataMigrationManager;
import ca.tweetzy.core.database.DatabaseConnector;
@ -47,6 +46,7 @@ import ca.tweetzy.core.hooks.PluginHook;
import ca.tweetzy.core.hooks.economies.Economy;
import ca.tweetzy.core.utils.Metrics;
import ca.tweetzy.core.utils.TextUtils;
import ca.tweetzy.flight.comp.enums.ServerVersion;
import co.aikar.taskchain.BukkitTaskChainFactory;
import co.aikar.taskchain.TaskChain;
import co.aikar.taskchain.TaskChainFactory;
@ -54,6 +54,7 @@ import lombok.Getter;
import lombok.Setter;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.Plugin;
import java.io.File;
import java.io.IOException;
@ -132,7 +133,6 @@ public class AuctionHouse extends TweetyPlugin {
public void onPluginEnable() {
TweetyCore.registerPlugin(this, 1, "CHEST");
// Check server version
if (ServerVersion.isServerVersionAtOrBelow(ServerVersion.V1_7)) {
getServer().getPluginManager().disablePlugin(this);
return;
@ -298,9 +298,10 @@ public class AuctionHouse extends TweetyPlugin {
);
// Placeholder API
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
final Plugin papi = Bukkit.getPluginManager().getPlugin("PlaceholderAPI");
if (papi != null && papi.isEnabled())
new PlaceholderAPIHook(this).register();
}
// start the auction tick task
TickAuctionsTask.startTask();
@ -324,9 +325,9 @@ public class AuctionHouse extends TweetyPlugin {
getLogger().severe("You will not receive any support while using a non-supported jar, support jars: Spigot or Paper");
}
if (ServerVersion.isServerVersionBelow(ServerVersion.V1_16)) {
getLogger().severe("You are receiving this message because you're running Auction House on a Minecraft version older than 1.16. As a heads up, Auction House 3.0 is going to be for 1.16+ only");
}
// if (ServerVersion.isServerVersionBelow(ServerVersion.V1_16)) {
// getLogger().severe("You are receiving this message because you're running Auction House on a Minecraft version older than 1.16. As a heads up, Auction House 3.0 is going to be for 1.16+ only");
// }
if (!ServerProject.isServer(ServerProject.PAPER, ServerProject.SPIGOT)) {
getLogger().warning("You're running Auction House on a non supported server jar, although small, there's a chance somethings will not work or just entirely break.");

View File

@ -24,10 +24,9 @@ import ca.tweetzy.auctionhouse.auction.MinItemPrice;
import ca.tweetzy.auctionhouse.auction.enums.PaymentReason;
import ca.tweetzy.auctionhouse.helpers.ConfigurationItemHelper;
import ca.tweetzy.auctionhouse.settings.Settings;
import ca.tweetzy.core.compatibility.ServerVersion;
import ca.tweetzy.core.compatibility.XMaterial;
import ca.tweetzy.core.hooks.EconomyManager;
import ca.tweetzy.core.utils.items.ItemUtils;
import ca.tweetzy.flight.comp.enums.ServerVersion;
import ca.tweetzy.flight.nbtapi.NBT;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
@ -598,7 +597,6 @@ public class AuctionAPI {
nbt.setItemStackArray("AuctionBundleItems", items);
});
ItemUtils.addGlow(item);
return item;
}

View File

@ -25,8 +25,8 @@ import ca.tweetzy.auctionhouse.auction.enums.AuctionStackType;
import ca.tweetzy.auctionhouse.helpers.BundleUtil;
import ca.tweetzy.auctionhouse.helpers.MaterialCategorizer;
import ca.tweetzy.auctionhouse.settings.Settings;
import ca.tweetzy.core.compatibility.ServerVersion;
import ca.tweetzy.core.utils.TextUtils;
import ca.tweetzy.flight.comp.enums.ServerVersion;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;

View File

@ -20,8 +20,8 @@ package ca.tweetzy.auctionhouse.commands;
import ca.tweetzy.auctionhouse.AuctionHouse;
import ca.tweetzy.core.commands.AbstractCommand;
import ca.tweetzy.core.compatibility.ServerVersion;
import ca.tweetzy.core.compatibility.XMaterial;
import ca.tweetzy.flight.comp.enums.ServerVersion;
import org.bukkit.NamespacedKey;
import org.bukkit.block.Block;
import org.bukkit.block.Chest;

View File

@ -40,12 +40,12 @@ import ca.tweetzy.auctionhouse.helpers.input.TitleInput;
import ca.tweetzy.auctionhouse.hooks.FloodGateHook;
import ca.tweetzy.auctionhouse.hooks.PlaceholderAPIHook;
import ca.tweetzy.auctionhouse.settings.Settings;
import ca.tweetzy.core.compatibility.ServerVersion;
import ca.tweetzy.core.compatibility.XSound;
import ca.tweetzy.core.gui.events.GuiClickEvent;
import ca.tweetzy.core.hooks.EconomyManager;
import ca.tweetzy.core.utils.NumberUtils;
import ca.tweetzy.core.utils.TextUtils;
import ca.tweetzy.flight.comp.enums.ServerVersion;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;

View File

@ -18,7 +18,7 @@
package ca.tweetzy.auctionhouse.helpers;
import ca.tweetzy.core.compatibility.ServerVersion;
import ca.tweetzy.flight.comp.enums.ServerVersion;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;

View File

@ -25,11 +25,11 @@ import ca.tweetzy.auctionhouse.helpers.BundleUtil;
import ca.tweetzy.auctionhouse.helpers.PlayerHelper;
import ca.tweetzy.auctionhouse.helpers.UpdateChecker;
import ca.tweetzy.auctionhouse.settings.Settings;
import ca.tweetzy.core.compatibility.ServerVersion;
import ca.tweetzy.core.compatibility.XMaterial;
import ca.tweetzy.core.utils.PlayerUtils;
import ca.tweetzy.core.utils.TextUtils;
import ca.tweetzy.flight.comp.Titles;
import ca.tweetzy.flight.comp.enums.ServerVersion;
import ca.tweetzy.flight.nbtapi.NBT;
import ca.tweetzy.flight.utils.Common;
import org.bukkit.Bukkit;

View File

@ -5,7 +5,7 @@ main: ca.tweetzy.auctionhouse.AuctionHouse
description: Auction House is a premium auction solution for your server.
website: https://tweetzy.ca/
authors: [ Kiran Hart ]
softdepend: [ Vault, PlayerPoints, PlaceholderAPIHook, MMOItemsHook, UltraEconomy, CMI, Essentials, ChestShop, EcoEnchants ]
softdepend: [ Vault, PlayerPoints, PlaceholderAPI, MMOItemsHook, UltraEconomy, CMI, Essentials, ChestShop, EcoEnchants ]
commands:
auctionhouse: