# Changelog & Version History

<span style="white-space: pre-wrap;">Here we document all changes, new features, and bug fixes of </span>**GWorld v2**. We recommend that server administrators take a quick look at this list before every update, especially if changes are made to databases or configuration files ("migrations").

---

### \[[v2.0.1](https://www.spigotmc.org/resources/gworld.80373/update?update=630631)\] - PAPI (PlaceholderAPI) &amp; Aliases

With this small update, PAPI is integrated and aliases are added. It brings native placeholder support and finally allows you to give worlds user-friendly display names!

#### ✨ Added

- **PlaceholderAPI Support:**<span style="white-space: pre-wrap;"> GWorld now has an internally registered expansion. The worlds can be accessed in scoreboards and menus via </span>`<span class="editor-theme-code">%gworld_alias%</span>`<span style="white-space: pre-wrap;"> and </span>`<span class="editor-theme-code">%gworld_name%</span>`.
- **World Aliases:**<span style="white-space: pre-wrap;"> A world can now be given a display name (incl. color codes via </span>`<span class="editor-theme-code">&</span>`<span style="white-space: pre-wrap;">) using </span>`<span class="editor-theme-code">/gset <world> alias <name></span>`.
- **Automatic Parsing:**<span style="white-space: pre-wrap;"> Color codes in aliases are converted from </span>`<span class="editor-theme-code">&</span>`<span style="white-space: pre-wrap;"> to </span>`<span class="editor-theme-code">§</span>`<span style="white-space: pre-wrap;"> directly upon saving for maximum performance.</span>

#### 🔄 Changed

- **Database Migration to v2:**<span style="white-space: pre-wrap;"> The MySQL table structure was expanded with the </span>`<span class="editor-theme-code">alias</span>`<span style="white-space: pre-wrap;"> field. </span>**The plugin performs this migration automatically on the first startup. No manual intervention in the database is necessary!**
- **YAML Update:**<span style="white-space: pre-wrap;"> The </span>`<span class="editor-theme-code">worlds.yml</span>`<span style="white-space: pre-wrap;"> is now saved in the </span>`<span class="editor-theme-code">ConfigVersion: 2</span>`<span style="white-space: pre-wrap;"> format to manage the alias data cleanly.</span>
- `<span class="editor-theme-code">/ginfo</span>`<span style="white-space: pre-wrap;"> now displays the formatted display name in addition to the world name.</span>

---

### \[[v2.0.0](https://www.spigotmc.org/resources/gworld.80373/update?update=630162)\] - Complete Recode, DB &amp; Management of Animals and Monsters

In this update, GWorld was completely recoded and a lot of technical debt was removed. In addition to database support, you can now decide individually for all animals and monsters whether they are allowed to spawn.

#### ✨ Added

- **Automatic Migration:**<span style="white-space: pre-wrap;"> GWorld automatically migrates your worlds from the legacy version v1.3.3.</span>
- **DB Migration:**<span style="white-space: pre-wrap;"> If a database is configured and worlds exist in the </span>`<span class="editor-theme-code">worlds.yml</span>`, they will be transferred to the database.
- **Spawning of Animals and Monsters:**<span style="white-space: pre-wrap;"> Animals and monsters can now be specifically enabled and disabled.</span>
- **New API:**<span style="white-space: pre-wrap;"> There is a new and completely revised API for developers.</span>

#### 🔄 Changed

- **Source Code:**<span style="white-space: pre-wrap;"> The entire source code has been recoded.</span>

---

### \[v1.x.x\] - Previous Versions

**The history of the older v1 versions (Legacy) can only be found on the** [**SpigotMC page**](https://gworld.gilljan.de)**.**