Using Mojang's official API! This is a extremely simple plugin that allows you to check the history of name changes.
As of version 2.0.0, when a player login to a server, this plugin force check his/her name history against Mojang's server and saves the history in the local cache. This local cache can be used by other plugin using this plugin's public API to get name histories.
Lockette / Deadbolt:
You can use this plugin to update old names on the lockette and deadbolt signs. Players just need to Right-Click the sign with their name on it.
Commands:
You can configure how name history is displayed in config.yml:
Placeholders:
# This is a template config file
# define your parameter and its value like:
Messages:
ErrorMsg : "&c [CheckNameHistory] : Some error occured."
NoPlayerMsg: "&c[CheckNameHistory] The specified player does not exist on this server."
NoChangeMsg: "&c[CheckNameHistory] This player (&e%player%&c) has not changed his name in the past."
TitleMsg: "=== &e[&6Name Change History for &e%player%] &r==="
UUIDMsg: "&6UUID: &e%uuid%"
FirstNameMsg: "&b%name%"
NameMsg: "&b%name% changed at %date%"
Order: descending #ascending
Installation:
Just drop CheckNameHistory.jar in the plugins folder.
For Developers:
You can retrieve a list of player's previous names using CheckNameHistory's public method. The oldest name will be stored at the beginning of the list and the latest name is stored at the end of the list. There are two public APIs:
, this method will contact Mojang to get the name history. If you pass
, this method will get the name history from the local cache.
import com.vk2gpz.checknamehistory.CheckNameHistory;
....
Player player = xxxxxx;
List<String> previousNames = CheckNameHistory.getPreviousNames(player.getName(), false);
if (previousNames != null && previousNames.size() > 0) {
// do your process.
}
...
Map<Date, String> previousNamesWithDates = CheckNameHistory.getPreviousNamesWithDates(player.getName(), false);
if (previousNamesWithDates != null && previousNamesWithDates.size() > 0) {
// do your process.
}
....
Donation:
It would be greatly appreciated for your donation to continue providing support for this plugin.
![[IMG]](//proxy.spigotmc.org/83fd4c6fab11a27178ca1f7623bc662c92a4d7b8?url=https%3A%2F%2Fwww.paypalobjects.com%2Fen_AU%2Fi%2Fbtn%2Fbtn_donateCC_LG.gif)
As of version 2.0.0, when a player login to a server, this plugin force check his/her name history against Mojang's server and saves the history in the local cache. This local cache can be used by other plugin using this plugin's public API to get name histories.
Lockette / Deadbolt:
You can use this plugin to update old names on the lockette and deadbolt signs. Players just need to Right-Click the sign with their name on it.
Commands:
- /cnh | /cnh help : displays the help menu
- /cnh <latest_name> [-c] : displayers the history of name changes. With the option '-c', this command will look up name history from the local cache.
NOTE: the name needs to be the latest name. - /cnh reload : reloads the config.yml file.
- checknamehistory.admin : allows you to use /cnh <name> command
- checknamehistory.reload : allows you to use /cnh reload command
You can configure how name history is displayed in config.yml:
Placeholders:
- %player% : player name
- %uuid% : player's uuid
- %name% : player's previous name
- %date% : player's latest name change date/time
Code (Text):
# This is a template config file
# define your parameter and its value like:
Messages:
ErrorMsg : "&c [CheckNameHistory] : Some error occured."
NoPlayerMsg: "&c[CheckNameHistory] The specified player does not exist on this server."
NoChangeMsg: "&c[CheckNameHistory] This player (&e%player%&c) has not changed his name in the past."
TitleMsg: "=== &e[&6Name Change History for &e%player%] &r==="
UUIDMsg: "&6UUID: &e%uuid%"
FirstNameMsg: "&b%name%"
NameMsg: "&b%name% changed at %date%"
Order: descending #ascending
Installation:
Just drop CheckNameHistory.jar in the plugins folder.
For Developers:
You can retrieve a list of player's previous names using CheckNameHistory's public method. The oldest name will be stored at the beginning of the list and the latest name is stored at the end of the list. There are two public APIs:
-
: returns the list of names in a list.Code (Text):getPreviousNames(String name, boolean forceCheck)
-
: return the map of Date/Name pair.Code (Text):getPreviousNamesWithDates(String name, boolean forceCheck)
Code (Text):
forceCheck = true
Code (Text):
forceCheck = false
Code (Text):
import com.vk2gpz.checknamehistory.CheckNameHistory;
....
Player player = xxxxxx;
List<String> previousNames = CheckNameHistory.getPreviousNames(player.getName(), false);
if (previousNames != null && previousNames.size() > 0) {
// do your process.
}
...
Map<Date, String> previousNamesWithDates = CheckNameHistory.getPreviousNamesWithDates(player.getName(), false);
if (previousNamesWithDates != null && previousNamesWithDates.size() > 0) {
// do your process.
}
....
It would be greatly appreciated for your donation to continue providing support for this plugin.
![[IMG]](http://proxy.spigotmc.org/83fd4c6fab11a27178ca1f7623bc662c92a4d7b8?url=https%3A%2F%2Fwww.paypalobjects.com%2Fen_AU%2Fi%2Fbtn%2Fbtn_donateCC_LG.gif)
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
CheckNameHistory is a free Minecraft Java mod. Downloaded 2,875 times (via Spigot). Download it and open it directly in the game.