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: