From 61bcea37b9e871133f6dc8213d4561865f20cd2b Mon Sep 17 00:00:00 2001 From: PretzelJohn <58197328+PretzelJohn@users.noreply.github.com> Date: Sat, 21 May 2022 08:34:23 -0400 Subject: [PATCH] Version 1.5.6: * Added "ghast_spawn_egg" to IgnoreHeldItems list in config.yml (supports SafariNet by default) - Thanks to Turjoy9 * Added "name_tag" to IgnoreHeldItems list in config.yml (fixes nametagging villagers with professions) - Thanks to Turjoy9 * Added a few more comments in VillagerTradeLimiter.java --- pom.xml | 2 +- .../villagertradelimiter/VillagerTradeLimiter.java | 11 ++++++----- .../dev/villagertradelimiter/database/MySQL.java | 2 +- src/main/resources/messages.yml | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index d729f69..e752c19 100644 --- a/pom.xml +++ b/pom.xml @@ -46,7 +46,7 @@ mysql mysql-connector-java - 8.0.28 + 8.0.29 provided diff --git a/src/com/pretzel/dev/villagertradelimiter/VillagerTradeLimiter.java b/src/com/pretzel/dev/villagertradelimiter/VillagerTradeLimiter.java index f614f8a..9a1180c 100644 --- a/src/com/pretzel/dev/villagertradelimiter/VillagerTradeLimiter.java +++ b/src/com/pretzel/dev/villagertradelimiter/VillagerTradeLimiter.java @@ -107,18 +107,19 @@ public class VillagerTradeLimiter extends JavaPlugin { // ------------------------- Getters ------------------------- - /** Returns the settings from config.yml */ + /** @return the settings from config.yml */ public FileConfiguration getCfg() { return this.cfg; } - /** Returns a language setting from messages.yml */ + /** @param path the key you want the value for + * @return a language setting from messages.yml */ public String getLang(final String path) { return this.lang.get(path); } - /** Returns this plugin's player listener */ + /** @return this plugin's player listener */ public PlayerListener getPlayerListener() { return this.playerListener; } - /** Returns a player's data container */ + /** @return a player's data container */ public HashMap getPlayerData() { return this.playerData; } - /** Returns the invsee inventory's barrier block */ + /** @return the invsee inventory's barrier block */ public ItemStack getBarrier() { return this.commandManager.getBarrier(); } } diff --git a/src/com/pretzel/dev/villagertradelimiter/database/MySQL.java b/src/com/pretzel/dev/villagertradelimiter/database/MySQL.java index 5a83ae0..9589bd2 100644 --- a/src/com/pretzel/dev/villagertradelimiter/database/MySQL.java +++ b/src/com/pretzel/dev/villagertradelimiter/database/MySQL.java @@ -25,7 +25,7 @@ public class MySQL extends Database { try { this.source.setCharacterEncoding(cfg.getString("encoding", "utf8")); this.source.setUseSSL(cfg.getBoolean("useSSL", false)); - } catch (SQLException e) {} + } catch (SQLException ignored) {} this.test(); } diff --git a/src/main/resources/messages.yml b/src/main/resources/messages.yml index fc3a760..d0c2a9f 100644 --- a/src/main/resources/messages.yml +++ b/src/main/resources/messages.yml @@ -2,14 +2,14 @@ help: |- [villagertradelimiter.use]&a----- VTL Commands ----- [villagertradelimiter.use]&b/vtl;&fshows this help message - [villagertradelimiter.reload]&b/vtl reload;&freloads config.yml + [villagertradelimiter.reload]&b/vtl reload;&freloads config.yml and messages.yml [villagertradelimiter.see]&b/vtl see ;&fshows the adjusted trades for another player # Common messages: common: reloaded: "&eVillagerTradeLimiter (VTL) &ahas been reloaded!" noconsole: "&cYou cannot use this command from the console." - noargs: "&cNot enough arguments! For command usage, see /vtl" + noargs: "&cNot enough arguments! For command usage, see &b/vtl" # Messages for the /vtl see command: see: