Fixes locale text error
https://github.com/BentoBoxWorld/Limits/issues/33
This commit is contained in:
parent
34c5e79d49
commit
2beeb118f9
|
@ -126,7 +126,7 @@ public class EntityLimitListener implements Listener {
|
||||||
if (!island.isSpawn() && atLimit(island, bypass, e.getEntity())) {
|
if (!island.isSpawn() && atLimit(island, bypass, e.getEntity())) {
|
||||||
// Not allowed
|
// Not allowed
|
||||||
e.setCancelled(true);
|
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()),
|
Util.prettifyText(e.getEntity().getType().toString()),
|
||||||
"[number]", String.valueOf(addon.getSettings().getLimits().getOrDefault(e.getEntity().getType(), -1)));
|
"[number]", String.valueOf(addon.getSettings().getLimits().getOrDefault(e.getEntity().getType(), -1)));
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,14 @@
|
||||||
# the one at http://yaml-online-parser.appspot.com #
|
# 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:
|
limits:
|
||||||
entity-hit-limit: "&c[entity] spawning limited to [number]!"
|
|
||||||
block-hit-limit: "&c[material] limited to [number]!"
|
|
||||||
panel-title: "Island limits"
|
panel-title: "Island limits"
|
||||||
|
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
limits:
|
limits:
|
||||||
main:
|
main:
|
||||||
|
@ -27,4 +30,3 @@ island:
|
||||||
block-limit-syntax: "[number]/[limit]"
|
block-limit-syntax: "[number]/[limit]"
|
||||||
no-limits: "&cNo limits set in this world"
|
no-limits: "&cNo limits set in this world"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue