Fixes locale text error

https://github.com/BentoBoxWorld/Limits/issues/33
This commit is contained in:
tastybento 2019-08-07 21:20:08 -07:00
parent 34c5e79d49
commit 2beeb118f9
2 changed files with 6 additions and 4 deletions

View File

@ -126,7 +126,7 @@ public class EntityLimitListener implements Listener {
if (!island.isSpawn() && atLimit(island, bypass, e.getEntity())) {
// Not allowed
e.setCancelled(true);
User.getInstance(player).sendMessage("limits.hit-limit", "[material]",
User.getInstance(player).sendMessage("block-limits.hit-limit", "[material]",
Util.prettifyText(e.getEntity().getType().toString()),
"[number]", String.valueOf(addon.getSettings().getLimits().getOrDefault(e.getEntity().getType(), -1)));

View File

@ -3,11 +3,14 @@
# the one at http://yaml-online-parser.appspot.com #
###########################################################################################
block-limits:
hit-limit: "&c[material] limited to [number]!"
entity-limits:
hit-limit: "&c[entity] spawning limited to [number]!"
limits:
entity-hit-limit: "&c[entity] spawning limited to [number]!"
block-hit-limit: "&c[material] limited to [number]!"
panel-title: "Island limits"
admin:
limits:
main:
@ -27,4 +30,3 @@ island:
block-limit-syntax: "[number]/[limit]"
no-limits: "&cNo limits set in this world"