From 2beeb118f95414a9cf271a5455227e15b922cc8b Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 7 Aug 2019 21:20:08 -0700 Subject: [PATCH] Fixes locale text error https://github.com/BentoBoxWorld/Limits/issues/33 --- .../addon/limits/listeners/EntityLimitListener.java | 2 +- src/main/resources/locales/en-US.yml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/bentobox/addon/limits/listeners/EntityLimitListener.java b/src/main/java/bentobox/addon/limits/listeners/EntityLimitListener.java index 03c03c6..148cd07 100644 --- a/src/main/java/bentobox/addon/limits/listeners/EntityLimitListener.java +++ b/src/main/java/bentobox/addon/limits/listeners/EntityLimitListener.java @@ -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))); diff --git a/src/main/resources/locales/en-US.yml b/src/main/resources/locales/en-US.yml index fb4aa2e..1d35556 100755 --- a/src/main/resources/locales/en-US.yml +++ b/src/main/resources/locales/en-US.yml @@ -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" -