Skip to content

Commit

Permalink
Fixes locale text error
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Aug 8, 2019
1 parent 34c5e79 commit 2beeb11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void onBlock(HangingPlaceEvent e) {
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)));

Expand Down
8 changes: 5 additions & 3 deletions src/main/resources/locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -27,4 +30,3 @@ island:
block-limit-syntax: "[number]/[limit]"
no-limits: "&cNo limits set in this world"


0 comments on commit 2beeb11

Please sign in to comment.