*This update contains changes to config.yml, so you need to add or remove some fields.*
*This update contains changes to localization files, so you need to remove current and replace with new using /oc resetlocale.*
### **If you're updating you should make a backup of worlds.**
### New Entities Browser menu
Now players can control entities in their worlds with /world mobs, or click icon in settings menu.
It allows to:
- Teleport to entity
- Teleport entity to player
- Remove entity
### Worlds storage change
In previous versions (5.2, 5.1, 5.0...) we stored your worlds in `unloadedWorlds` folder, sometimes worlds could be outside this folder.
This version will use `/planets/` folder to store your worlds. Before updating to this version it's recommended to backup your worlds.
If you already have OpenCreative+ worlds, plugin should move worlds folders to /planets/ folder by itself, but if you don't want to wait,
then just rename `unloadedWorlds` folder to `planets`.
### Configuration changes
- Section `execute-console-commands` from config.yml is updated and renamed to `commands`. Now you can add commands that will be executed on any of 5 listed events. You can set command executor as console (console: true) or player (console: false). Also you can change delay of commands. Commands will support some placeholders and from PlaceholderAPI too.
```yaml
commands:
onLobby: # %player%
yourCustomNameOfCommand:
command: "discordsrv broadcast test"
console: true
delay: 0
onPlanetConnect: {} # %planet% -> Planet's ID, %player% -> player's name
onPlanetDisconnect: {} # %planet%, %player%
onWorldChat: {} # %message%, %formatted%
onCreativeChat: {} # %message%, %formatted%
```
- Added new requirements for `requirements` section: How many seconds player should play on server before creating world, How many seconds should be passed before world can be rated with /like, /dislike.
```yaml
requirements:
world-creation:
played-seconds: 30
world-reputation:
creation-seconds: 300
```
- For player groups now you can set up a Advertisement Price and /Like reward. To use economy you need to have Vault and Essentials installed.
```yaml
groups:
default:
# ...
world:
advertisement-cost: 0
like-reward: 1
# ...
```
### Some rewritten code
We refactored AbstractMenu and Placeholders classes.
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }