diff --git a/README.md b/README.md index a513cd6..70d12c0 100644 --- a/README.md +++ b/README.md @@ -56,4 +56,28 @@ Usage permissions are (put the gamemode name, e.g. acidisland at the front): default: op ``` +## Items that cannot be limited +Some items cannot be limited (right now). The reasons are usually because there are too many ways to remove the item without it being tracked. If you are a programmer and can work out how to fix these, then please submit a PR! +* Primed TNT +* Evoker Fangs +* Llama Spit +* Dragon Fireball +* Area Effect Cloud +* Ender signal +* Small fireball +* Fireball +* Thrown Exp Bottle +* Shulker Bullet +* Wither Skull +* Tridents +* Arrows +* Spectral Arrows +* Snowballs +* Eggs +* Leashes +* Ender crystals +* Ender pearls +* Ender dragon +* Item frames +* Paintings diff --git a/pom.xml b/pom.xml index 6c00176..4b3d81a 100644 --- a/pom.xml +++ b/pom.xml @@ -64,7 +64,7 @@ -LOCAL - 1.9.1 + 1.9.2 diff --git a/src/main/java/world/bentobox/limits/commands/LimitPanel.java b/src/main/java/world/bentobox/limits/commands/LimitPanel.java index 785b874..c3d3613 100644 --- a/src/main/java/world/bentobox/limits/commands/LimitPanel.java +++ b/src/main/java/world/bentobox/limits/commands/LimitPanel.java @@ -141,13 +141,13 @@ public class LimitPanel { .filter(e -> e.getType().equals(ent)) .filter(e -> island.inIslandSpace(e.getLocation())).count(); // Nether - if (addon.getPlugin().getIWM().isNetherIslands(island.getWorld())) { + if (addon.getPlugin().getIWM().isNetherIslands(island.getWorld()) && addon.getPlugin().getIWM().getNetherWorld(island.getWorld()) != null) { count += addon.getPlugin().getIWM().getNetherWorld(island.getWorld()).getEntities().stream() .filter(e -> e.getType().equals(ent)) .filter(e -> island.inIslandSpace(e.getLocation())).count(); } // End - if (addon.getPlugin().getIWM().isEndIslands(island.getWorld())) { + if (addon.getPlugin().getIWM().isEndIslands(island.getWorld()) && addon.getPlugin().getIWM().getEndWorld(island.getWorld()) != null) { count += addon.getPlugin().getIWM().getEndWorld(island.getWorld()).getEntities().stream() .filter(e -> e.getType().equals(ent)) .filter(e -> island.inIslandSpace(e.getLocation())).count(); diff --git a/src/main/resources/locales/cs.yml b/src/main/resources/locales/cs.yml new file mode 100644 index 0000000..3723ad0 --- /dev/null +++ b/src/main/resources/locales/cs.yml @@ -0,0 +1,35 @@ +########################################################################################### +# This is a YML file. Be careful when editing. Check your edits in a YAML checker like # +# the one at http://yaml-online-parser.appspot.com # +# # +# Translation by: CZghost # +########################################################################################### + +block-limits: + hit-limit: "&c[material] omezen na [number]!" +entity-limits: + hit-limit: "&cSpawnování [entity] omezeno na [number]!" +limits: + panel-title: "Omezení ostrovů" + + +admin: + limits: + main: + parameters: "" + description: "ukázat omezení ostrova hráče" + calc: + parameters: "" + description: "přepočítat omezení ostrova hráče" + finished: "&aPřepočítání ostrova úspěšně dokončeno!" + +island: + limits: + description: "ukázat omezení tvého ostrova" + max-color: "&c" + regular-color: "&a" + block-limit-syntax: "[number]/[limit]" + no-limits: "&cTento svět nemá žádné omezení" + recount: + description: "přepočítá omezení tvého ostrova" +