Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<properties>
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.proc>full</maven.compiler.proc>
<tlibs.version>2.0.0</tlibs.version>
</properties>

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/tfminecraft/pointshop/PointShop.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public void createConfigs() {
public void reload() {
loadConfigs();
}
// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
public void reloadMessage(Player p) {
p.sendMessage(ChatColor.GREEN + "[PointShop]" + ChatColor.YELLOW + " Reloading plugin...");
reload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ public String getRawData(String key, HashMap<String, Object> defaults) {
: (defaults.containsKey(key) ? defaults.get(key).toString() : key);
}

// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
public String getString(String key, HashMap<String, Object> defaults) {
return ChatColor.translateAlternateColorCodes('&', getRawData(key, defaults));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import net.tfminecraft.pointshop.objects.Trade;

public class InventoryManager {
// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
public void shopView(Player player, Inventory i, boolean update) {
if(!update) {
i = PointShop.plugin.getServer().createInventory(null, 27, "§7Point Shop");
Expand All @@ -28,6 +30,8 @@ public void shopView(Player player, Inventory i, boolean update) {
player.openInventory(i);
}
}
// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
public ItemStack createTradeItem(Trade t, PlayerData pd) {
ItemStack i = t.getMenuItem();
ItemMeta meta = i.getItemMeta();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import net.tfminecraft.pointshop.objects.Trade;

public class PointManager implements Listener{
// Keep the existing legacy text representation, formatting, and exact-string comparisons.
@SuppressWarnings("deprecation")
@EventHandler
public void invenClick(InventoryClickEvent e) {
if(e.getClickedInventory() == null) return;
Expand Down