Skip to content

Commit

Permalink
Add Polish translation (#73)
Browse files Browse the repository at this point in the history
* Improved French translation (#35)

* Translate fr.yml via GitLocalize

* Translate fr.yml via GitLocalize

Co-authored-by: organizatsiya <59617430+organizatsiya@users.noreply.github.com>
Co-authored-by: AFGAME <50768722+AFGAME@users.noreply.github.com>

* Release 2.0.0 (#59)

* Add ignoreCancelled to BlockFromToEvent to avoid issues when addon allows to place water where it should not be.

* Fix issue when water stop flowing, if cobblestone generation is triggered by water flow (#24)

* Add generation sound effect and particles (#23)

* Add Spanish translation (#25)

* Update config.yml to include info on decimals and total chance values per tier (#22)

* Update config.yml to include info on decimals and max chance values

Update config.yml to include info on decimals for chances and max chance values for tiers.

* Translate es.yml via GitLocalize

* Translate es.yml via GitLocalize

* Remove unnecessary templates un translation files.
Update dependencies in pom.

* Remove bug reported by SonarCloud.

* Fixes a few code smells.

* Added MainGeneratorListener test class.

* Adds support for decimal block chances

#27
#21

* Don't use physics on new generated blocks.

* Fixes code smells and duplications

* Fixes gamemode setting bug introduced by refactoring.

#29

* Added StoneGeneratorAddon test class

* Updated travis.yml

* Fixed code smells in tests.

* Gitignore

* Seeding was preventing randomness within same millisecond

#31

* Version up 1.9.0

* Changed build numbers to use 'b' instead of '#'

* Update to use BentoBox 1.9.2 API

* Fixed indentation and made minor improvements in the main class

* Added %MagicCobblestoneGenerator_[gamemode]_island_generator_tier% placeholder
Implements #30

* Fixed and improved tests

* Improved en-US

* Fixed code smell

* Added "MAGIC_COBBLESTONE_GENERATOR" flag (SETTING)
Implemented #11

* Fixed tests

* Translate de.yml via GitLocalize (#32)

Co-authored-by: xXjojojXx <36734820+xXjojojXx@users.noreply.github.com>

* Czech translation. Credit @Polda18

* make use of physics configurable (#34)

* Generator range option (#38)

* Added a setting that allows the generator to only work if there is a member of the island in x range. This can be disabled by setting it the range in the config to 0 or any lower value.

* Made a couple of improvements based on feedback.

* Fixes tests and adds new tests for MainGeneratorListener

* Optimized isInRangeToGenerate method

* Fix grass block (#40)

* Version 1.9.1

* Handles cobble generation via other means

#47

* Fixes tests

* Fixes #48

* Update to BentoBox 1.14.0-SNAPSHOT

* Reformat code with better reading format.

* Removed alpha stage text

* Improved explanation

* Do some more cleanUps.

Add better placeholders that follows `[gamemode]_[addon]_[placeholder]`

* Create fr.yml (#45)

* Update to spigot 1.16.1

* Rework addon in progress.

- Split Vanilla and Magic generator listeners in 2 classes.
Vanilla generator replaces block in the next tick, while Magic Generator will work with custom implementation.

- Add 3 types of generators: cobblestone, stone and basalt in MagicGenerator class. Remove one general method, as it is time to split them appart.
- Use vanilla generator listener for now only, as other is not finished.

* Change vanilla generator listener priority to monitor, as it does not cancels it, and should always be processed at the end.

* MagicCobblestone Generator 2.0.0 (#53)

* Create GeneratorTierObject

This object will contain all information for each generator tier.

* Add Getters and Setters for all variables.

* Add Database processing for generator tiers.

* Add description to the generator tier object.

* Add gameMode nether and end worlds only if island type are enabled.

* Implement GeneratorDataObject that stores data per island.

Allows to switch active generators.

* Add MaxTreasureAmount variable in GeneratorTierObject.

* Add ability to define generator tier as default generator.

* Split active generator into 3 different objects for cobblestone, stone and basalt.

* Replace separate active generators with a single set.

* Implement priority setting in generator tier object.

* Rework StoneGeneratorManager.

Add new data object loading and saving.
Create method that returns generator tier for given location and given generator type.
Create method that finds default generator tier for given world and given type.

Remove all commands, as they need complete rework.

* Remove main command and placeholders.
Must be reworked.

* Add Reload method.

* Rework settings file.
Remove generators from settings file. Will be implemented in separate file.

* Rework MagicGenerator class.
Use new methods and abilities.

* Create template file for generators.

* Move manager to separate package.

* Change from required-biome to required-biomes :)

* Add small protection against negative values

* Add method that can clear all generators for certain gamemode.

* Add generator file readed.

* Implement activation-cost variable.
This allows to define price for activating generator.
Rename upgrade-cost to more proper purchase-cost.

Add messages about Level addon and Upgrades addon requirements.

* Rename method from getManager to getAddonManager.

* Add method that allows to find all generators in given world.
Fix failing test.

* Start to create GeneratorUserPanel

* Add general Utils class.

* Implement ability to find out purchased generator tiers, purchased count of active generators and store working range in generator data object.

* Add generator data object validation, which populates unlocked generators and sets value for active generator count and working range.

* Add MAGIC_COBBLESTONE_GENERATOR_PERMISSION flag, that allows island owner change who can activate generators.

* Add VaultHook and UpgradesAddon getters and checks.

* Finish GeneratorUserPanel

Current implementation have some basic functionality for activating and deactivating generators.

* Implement Player command that opens gui.
Implement Admin command that allows to import generators.

Add ability to load generator tiers into gamemode, if it does not have it.

* Add missing need-restart message for some config options.

* Fixes missing flag method error.

* Add AOneBlock and Upgrades to softDepend list.

* Implement ability to create nested GUI's.

Create method that generates generator description based on input variables.

* Add world as parameter for constructor.

* Change visibility to build method.

* Rename button to Action.

* Create template for GeneratorViewPanel.

* Fix issue when generatorTier icon get broken over time.

* Continue to implement GeneratorViewPanel.

* Add material and treasure list to GeneratorViewPanel

* Add rightClick option to view Generator tier properties.

* Add View player command that opens Generator Tier view panel from command.

* Implement Data loading on player joining the server.

* Add proper generator data creation and removing on island creation and deleting.

* Add generator that operates only in the nether.

* Fix some issues in generatorTemplate

* Update default config file.

* Update permission list in addon.yml.

* Fix logging message.

* Create Constants file that contains most of used strings in guis an messages.
Update and fix locale usage in whole addon.

* Fixes locales file.

* A lot of small debug fixes.

- Init maps with collections that can be populated.
- Use TreeMap instead of simple Map, as it would avoid any casting.
- Add nonNull filter while getting existing islands in worlds.
- Prevent generator description to add text to it when user opens GUI.

* Fix an issue when activeFilterButton cause null-pointer when opening gui.

* Create 'generator why' command that will allow easier debugging.
Add a separate Why class that will manage reporting.

* Fix generator descriptions in template.

* Add GeneratorTierAdapter that will manage storing generator tier sets into database.
Change string sets to object sets in GeneratorDataObject.

Fix some other small bugs related to object saving and loading.

* Implement ability to purchase generator tiers from GeneratorViewPanel.

* Add 1.15.2 compatibility.

Note: Basalt generators will not work.

* Use jetbrains annotations instead of istack internal.

* Fixes tests.

Supports database storage and new onEnable messages

* Fixes permission checking bug.

#54

* Update `default-active-generators` comment.

* Fixes #55

* Update to BentoBox 1.14.0

* Return snapshot version.
Misunderstand the announcement message.

* Removed reference to Likes in config.yml

* Fix issue when generator were not imported into memory

* Fix issue when generators did not work.

The issue was that I changed how active generators are stored. Instead of storing generatorId in island data, I am now storing generatoTierObjects, to avoid mapping and make if faster.
However If forgot to change it there.

* Fix issue when users were not able to import basalt generator. (#57)

* Fix an issue when displayed chance number was not relevant to player.
Implement ability to specify number for chance with calculated value and 1-5 digits after comma.

Fixes #57 and #43

* Fixes #56

Use island delete event instead of deleted.

* Add placeholders for generator:

- `[gamemode]_magiccobblestonegenerator_active_generator_count` - returns number of currently active generators on player island.
- `[gamemode]_magiccobblestonegenerator_max_active_generator_count` - returns number of maximal allowed active generators at the same time.

- `[gamemode]_magiccobblestonegenerator_active_generator_names` - returns list of active generator names separated with `,`/
- `[gamemode]_magiccobblestonegenerator_unlocked_generator_names` - returns list of unlocked generator names separated with `,`/
- `[gamemode]_magiccobblestonegenerator_purchased_generator_names` - returns list of purchased generator names separated with `,`/

* Preprare release (#58)

* Add toUppercase for material reading from template file.

* Prepare release

Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: tastybento <tastybento@wasteofplastic.com>
Co-authored-by: Florian CUNY <poslovitch@gmail.com>
Co-authored-by: xXjojojXx <36734820+xXjojojXx@users.noreply.github.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
Co-authored-by: mindw0rm <mindw0rm@web.de>
Co-authored-by: ChimpGamer <Tim.Cremers@Ziggo.nl>
Co-authored-by: András Marczinkó <andris155@users.noreply.github.com>
Co-authored-by: Pierre LAGOUTTE <pierre.lagoutte@free.fr>

* Translate pl.yml via GitLocalize

Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: organizatsiya <59617430+organizatsiya@users.noreply.github.com>
Co-authored-by: AFGAME <50768722+AFGAME@users.noreply.github.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: tastybento <tastybento@wasteofplastic.com>
Co-authored-by: Florian CUNY <poslovitch@gmail.com>
Co-authored-by: xXjojojXx <36734820+xXjojojXx@users.noreply.github.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
Co-authored-by: mindw0rm <mindw0rm@web.de>
Co-authored-by: ChimpGamer <Tim.Cremers@Ziggo.nl>
Co-authored-by: András Marczinkó <andris155@users.noreply.github.com>
Co-authored-by: Pierre LAGOUTTE <pierre.lagoutte@free.fr>
Co-authored-by: Repo92 <xrepox@gmail.com>
  • Loading branch information
13 people committed Oct 2, 2020
1 parent 6b4c2de commit 7f1f946
Show file tree
Hide file tree
Showing 2 changed files with 182 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/resources/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
stonegenerator:
commands:
level:
description: Afficher les drops de votre générateur de Cobble actuel.
main:
description: liste des commandes de Magic Cobblestone Generator.
alllevels:
description: Afficher les drops du générateur de Cobble pour tous les paliers.
messages:
generator-tier: "&2[name] &r&2(depuis [value] niveau de l'île)."
material-chance: "&2 [name] - [value]%"
island-level: "&2Votre niveau d'île est de &6[level]&2!"
errors:
cannot-find-any-generators: "&cImpossible de trouver un niveau de Magic Cobblestone
Generator pour le monde actuel."
166 changes: 166 additions & 0 deletions src/main/resources/locales/pl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
---
stone-generator:
commands:
admin:
main:
description: Główna komenda administratora dla dodatku Magic Cobblestone Generator
import:
description: Komenda pozwalająca na import magicznych generatorów do dodatku
Trybu Gry
confirmation: Potwierdź, że chcesz usunąć istniejące generatory z [gamemode]
i importować generatory z szablonu
why:
parameters: "<player>"
description: Włącz/wyłącz wiadomości debugowania o Magic Cobblestone Generator
player:
main:
description: Główna komenda gracza, która otwiera GUI z wyborem generatora
view:
description: Komenda gracza otwierająca GUI ze szczegółowymi informacjami
o żądanym generatorze
parameters: "<generator_id> - id dla generatora"
gui:
buttons:
block-icon:
name: "[material]"
description: 'Szansa na wygenerowanie: [#.##]'
treasure-icon:
name: "[material]"
description: 'Szansa na drop: [#.####]'
return:
name: Powrót
description: |-
Powrót do poprzedniego
menu lub wyjście z GUI
previous:
name: Poprzednia strona
description: Przejdź do poprzedniej strony
next:
name: Następna strona
description: Przejdź do następnej strony
info:
name: Informacje ogólne
description: Wyświetla ogólne informacje o generatorze
blocks:
name: Lista zablokowanych
description: |-
Pokazuje listę bloków
i ich szanse na generowanie
treasures:
name: Lista skarbów
description: |-
Wyświetla listę skarbów
i ich szanse na drop.
Skarby są upuszczane
podczas generowania bloku
name:
name: Nazwa generatora
icon:
name: Ikona generatora
description:
name: Opis generatora
default:
name: Domyślny generator
priority:
name: Priorytet generatora
description: |-
Generatory z większym
numerem priorytetu będą preferowane jeśli jest wiele,
można zastosować w tej samej lokalizacji
type:
name: Typ generatora
required_min_level:
name: Wymagany poziom wyspy
description: Minimalny poziom wyspy
required_permissions:
name: Wymagane uprawnienia
purchase_cost:
name: Koszt zakupu
description: Kwota jaką trzeba zapłacić za odblokowanie tego generatora
activation_cost:
name: Koszt aktywacji
description: Kwota jaką trzeba zapłacić za każdym razem za aktywacje tego
generatora
biomes:
name: Biomy podlegające
description: Lista biomów w których generator będzie działał
deployed:
name: Rozmieszczony
treasure_amount:
name: Wartościowość skarbu
description: Wartościowość skarbu który dropnie
treasure_chance:
name: Szansa na skarb
description: Szansa na wydropienie skarbu
show_cobblestone:
name: Generatory Bruku
description: Pokazuje tylko generatory bruku
show_stone:
name: Generatory kamienia
description: Pokazuje tylko generatory kamienia
show_basalt:
name: Generatory bazaltu
description: Pokazuje tylko generatory bazaltu
toggle_visibility:
name: Tylko odblokowane
description: Pokazuje tylko odblokowane generatory
show_active:
name: Tylko aktywne
description: Pokazuje tylko aktywne generatory
descriptions:
generator-active: "&2 Aktywuj"
activation-cost: 'Koszt aktywacji: [number]'
locked: "&c Zablokowane!"
required-permissions: "&c Wymagane uprawnieia:"
missing-permission: "&c - [permission]"
required-level: "&c Wymagany [number] poziom wyspy"
purchase-cost: "&c Koszt zakupu: [number]."
current-value: "&2 Aktualna wartość: [value]"
current-value-list: "&2 - [value]"
click-to-view: "&e Prawy klik &7 żeby zobaczyć szczegóły."
click-to-activate: "&e Lewy klik &7 żeby aktywować."
click-to-deactivate: "&e Lewy klik &7 żebby dezaktywować."
click-to-purchase: "&e Kliknij &7 żeby kupić."
titles:
generator-view: 'Generator: [generator]'
generator-list: Generatory
messages:
import-count: "&6 Zaimportowany [number] nowych poziomów generatorów."
skipping: "&6 Generator '[generator]' &r&6 jest już w lokalnej pamięci podręcznej.
Pomijam."
overwriting: "&6 Nadpisywanie generatora '[generator]' &r&6 w lokalnej pamięci
podręcznej."
loaded: "&6 Generator '[generator]' &r&6 załadowany do lokalnej pamięci podręcznej."
generator-deactivated: "&6 Generator '[generator]' &r&6 został wyłączony."
generator-activated: "&6 Generator '[generator]' &r&6 został włączony."
generator-purchased: "&6 Generator '[generator]' &r&6 został zakupiony."
errors:
generator-tier-not-found: "&c Generator o id '[generator]' &r&c nie został znaleziony
w [gamemode]."
no-file: "&c Brak pliku generatorTemplate.yml. Nie można zaimportować."
no-load: "&c Błąd ładowania pliku generatorTemplate.yml . Błąd odczytu: [description]."
not-a-gamemode-world: "&c Świat '[world]' nie jest światem dodatku Trybu Gry"
active-generators-reached: "&c Aktywowano zbyt wiele generatorów. Spróbuj dezaktywować
niektóre przed aktywacją nowego."
generator-not-unlocked: "&c Generator '[generator]' &r&c nie jest odblokowany."
generator-already-purchased: "&c Generator '[generator]' &r&c jest już zakupiony."
island-level-not-reached: "&c Generator '[generator]' &r&c wymaga [number] poziomu
wyspy."
missing-permission: "&c Generator '[generator]' &r&c wymaga zezwolenia `[permission]`."
no-credits: "&c Niewystarczająca kwota żeby aktywować generator. Aktywacja wymaga
[number] ."
no-generator-data: "&c Nie można znaleźć poprawnych danych generatora"
no-generators-in-world: "&c Nie można znaleźć żadnego generatora w świecie [world]"
protection:
flags:
MAGIC_COBBLESTONE_GENERATOR:
name: Magiczny Generator
description: |-
&a Przełącz wszystkie Magiczne Generatory
&a na całej wyspie
hint: "&e Magiczne Generatory są wyłączone w ustawieniach wyspy"
MAGIC_COBBLESTONE_GENERATOR_PERMISSION:
name: Uprawnienia Magicznego Generatora
description: |-
&a Przełącz kto może aktywować
&a i dezaktywować generator

0 comments on commit 7f1f946

Please sign in to comment.