forked from Upstream/VillagerTradeLimiter
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
This commit is contained in:
parent
8a46c9ab1c
commit
61bcea37b9
2
pom.xml
2
pom.xml
@ -46,7 +46,7 @@
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.28</version>
|
||||
<version>8.0.29</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -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<UUID, PlayerData> 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(); }
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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 <player>;&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 <player> command:
|
||||
see:
|
||||
|
Loading…
Reference in New Issue
Block a user