SimpleNicks

SimpleNicks

Plugin

Simple, minimessage-based nickname plugin.

Server DecorationManagementSocialUtility

7,106 downloads
23 followers
Follow Save
Filter loader...
Filter versions...
Filter channels...

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%
  • Adds a fix for servers that may have experienced any weirdness using the displayname placeholder - added a new placeholder: %simplenicks_nickname% to display the parsed nickname of the user
  • Also adds a cache so that placeholder API is not constantly reading the save data directly
  • Fixes an issue where nicknames would not load on login if login took too long
  • Tested on 1.21.8
  • Adds the ability to add a prefix to nicknamed players
  • Fixes an issue where /snreload would not refresh people's nicknames
  • Tested on 1.21.5

Fixes a small issue with the %simplenicks_mininick%placeholder, where it would return null if no nickname had been set.

Fixes an issue where permissions for different parsing methods would not work, and would wrongfully say the user did not have permission to use that tag.

What's Changed

Command Changes:

  • Admins can now save and delete other players' nicknames
    • I assume this will mostly be used in GUIs but idk maybe admins will need it too lol

Permission Changes:

  • changed simplenick.usernamebypass into simplenick.bypass.username
  • added simplenick.bypass.length
  • added simplenick.bypass.regex
  • added simplenick.admin.save - Allows admins to save a user's nickname for them
    • Command Usage: /nick save <player>
  • added simplenick.admin.delete - Allows admins to delete someone's saved username
    • Command Usage: /nick delete <player> <nickname>
  • added simplenick.nick.save - Allows a user to save their current name
    • Command Usage: /nick save
  • added simplenick.nick.delete - Allows a user to delete their own saved nickname
    • Command Usage: /nick delete <nickname>

Full Changelog: https://github.com/Simplexity-Development/SimpleNicks/compare/1.0.0...2.0

  • Fix an issue where locale messages would not actually be reloaded
  • added these lines to the locale (you will need to add them manually if you already have a locale)
nick-save-success: "<prefix><green>Success! The nickname <nickname><reset><green> has been saved for future use"
nick-save-failure: "<prefix><gray>Failed to save current username."
nick-save-failure-too-many: "<prefix><gray>You have too many saved usernames, please remove some with /nick delete <nickname>"
nick-delete-success: "<prefix><gray>The nickname <nickname><reset><gray> has been successfully removed from your saved names"
nick-delete-failure: "<prefix><gray>Failed to delete given username."

Added

  • Ability to consider double-quoted strings as a single argument in commands.
    • To use a literal double-quote, escape it with \".
    • To use an literal escape symbol, escape it with \\.

Fixes

  • Config does not reload cause forgot to call reloadConfig() off of the plugin instance. Oops.

Dependencies

  • Updated Paper API to 1.20.4
  • Updated Placeholder API to 2.11.5

Full Changelog: https://github.com/Simplexity-Development/SimpleNicks/compare/0.0.4-beta...1.0.0

v0.0.4-beta

What's Changed

  • Abstract saving loading by @Peashooter101 in https://github.com/ADHDMC/SimpleNicks/pull/5
  • Adds FILE type save handling (does not transfer over current PDC nicknames) config option
  • Adds
  • Adds /nick save which will save your current nickname, and add it to the tabcompletion list when you do /nick set
    • requires simplenick.save permission
  • Adds /nick delete <name> which will delete a nickname from your saved nicknames
    • requires simplenick.delete permission
  • Adds placeholderAPI placeholder: %simplenicks_mininick% which will give the unparsed, minimessage formatted nickname (example of mine): image

⚠️ Note

You will need to delete your config.yml and have the plugin regenerate it on startup. The default save type is now "file", and old nicknames will not be seen. If you want to switch back to PDC saving, change the save type and restart your server.

Full Changelog: https://github.com/ADHDMC/SimpleNicks/compare/0.0.3-beta...0.0.4-beta

v0.0.3-beta

by Rhythmic on Dec 12, 2022
Download

Full Changelog: https://github.com/ADHDMC/SimpleNicks/compare/0.0.2-beta...0.0.3-beta

  • There is now a config, where you can set max nickname length, and configure the regex of allowed nickname characters
  • A new format permission was added: simplenick.nick.format.reset for the <reset> tag
  • The simplenick.admin permission has been expanded into 4 different permission options:
    • simplenick.admin.reset : reset other people's nicknames
    • simplenick.admin.restrictive : set other people's nicknames, according to the other person's formatting permissions
    • simplenick.admin.basic : set other people's nicknames, according to the admin's formatting permissions
    • simplenick.admin.full : set other people's nicknames, regardless of any permissions (note, all minimessage tags will be parsed with this, including click event, hover, insert, etc)
  • Fixed some spelling issues in the plugin.yml permissions list (some permissions were listed as simplenicks. instead of simplenick.

Full Changelog: https://github.com/ADHDMC/SimpleNicks/compare/0.0.1-beta...0.0.2-beta

  • Fixes plugin.yml's declared permission on /nick to be simplenicks.nick.set
  • Adds functionality to the tag permissions
  • /simplenicks help now generates a help menu

0.0.1-Beta

by Rhythmic on Dec 5, 2022
Download

First beta release, still some stuff to work on, but overall functional

There is currently not a placeholder in PAPI specifically for this plugin- but using the player expansion and %player_displayname% will show the nickname :3


Project members

Simplexity

Simplexity

Organization

Rhythmic

Owner

Peashooter101

Member

Details

Licensed MIT
Published 3 years ago
Updated 2 months ago