# Big Changes
- Saving changed to MySQL & SQLite
- Command structure has changed
- Placeholder API placeholders changed
- Permissions changed
**Please report any issues with this update! Thanks <3**
## Saving now uses SQL to store data, allowing easier indexing
This allows three new config options:
- `nickname-protection.online.enabled` (Prevents people from setting the same nickname as someone else who is online)
- `nickname-protection.offline.enabled` (Prevents people from setting the same nickname as someone regardless whether they're online or not)
- `nickname-protection.offline.expires` (How many days a nickname should be protected for, if the person doesn't log in)
**Other new config options:**
`require-permission`
- `nick` : whether the basic nickname commands should require permissions set by a permission plugin
- `color` : Whether nicknames can have color without having permissions set by a permission plugin
- `format` : Whether nicknames can have formatting without having permissions set by a permissions plugin
- `who` : Whether you can look up who a user is based on their nickname without having permissions set by a permissions plugin
**New Commands:**
- `/nick who <nickname>` tells you the username of the player with the supplied nickname
- `/nick save` can now take in an argument, so you can now do `/nick save <nickname>` if you want to save something that isn't your current nickname
- `/nick admin lookup <username>` will display a user's current nickname, as well as their saved nicknames
**Changed Commands (Admin Commands)**
- Admin commands are no longer running from the same commands as the normal nickname commands, they are now as follows
- `/nick admin set <username> <nickname>`
- `/nick admin reset <username>`
- `/nick admin delete <username> <nickname>`
**Removed:**
- Removed the ability to save a nickname for someone else
- Removed the 'restrictive' and 'full' admin permissions, when setting a nickname for someone else, the plugin will always use the admins' permissions for parsing
- Removed the 'save' permission, for the above listed reason
## Permission Changes:
- Added: `simplenick.bypass.nick-protection` - Allows bypassing the new nick protection options
- Color permissions have been moved out of the 'nick' node, and into their own 'color' node, and 'reset' has been moved into the color node
| Old | New |
| ------------------------------ | --------------------------- |
| `simplenick.nick.color` | `simplenick.color.basic` |
| `simplenick.nick.gradient` | `simplenick.color.gradient` |
| `simplenick.nick.rainbow` | `simplenick.color.rainbow` |
| `simplenick.nick.format.reset` | `simplenick.color.reset` |
- Format permissions have also been moved out of the 'nick' node, into a 'format' node
| Old | New |
| -------------------------------------- | --------------------------------- |
| `simplenick.nick.format.underline` | `simplenick.format.underline` |
| `simplenick.nick.format.italic` | `simplenick.format.italic` |
| `simplenick.nick.format.strikethrough` | `simplenick.format.strikethrough` |
| `simplenick.nick.format.bold` | `simplenick.format.bold` |
| `simplenick.nick.format.obfuscated` | `simplenick.format.obfuscated` |
- Admin nickname set permissions have been consolidated
| Old | New |
| ------------------------------ | ---------------------- |
| `simplenick.admin.restrictive` | `simplenick.admin.set` |
| `simplenick.admin.basic` | `simplenick.admin.set` |
| `simplenick.admin.full` | `simplenick.admin.set` |
## Placeholder API changes:
- Placeholder now starts with `simplenick` to be consistent with the permissions and other naming schemes
- Two new placeholders have been added: `prefixed-mininick` and `prefixed-nickname`
- The prefixed placeholders will insert the configured prefix, this was previously the default behavior, so you might need to use this one if you need that
| Old | New |
| ------------------------ | -------------------------------- |
| `%simplenicks_mininick%` | `%simplenick_prefixed-mininick%` |
| `%simplenicks_nickname%` | `%simplenick_nickname%` |
| None | `%simplenick_mininick%` |
| None | `%simplenick_nickname%` |
Optional dependencies
PlaceholderAPI
Any compatible version
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" }