HomeJavaModsCheckNameHistory
CheckNameHistory
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.

73056763039f39ddc8bdcb67ee0b7a08.png



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:
Permission Node:
Configuration:
You can configure how name history is displayed in config.yml:
Placeholders:
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:
If you pass
Code (Text):
forceCheck = true
, this method will contact Mojang to get the name history. If you pass
Code (Text):
forceCheck = false
, this method will get the name history from the local cache.

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.
        }
....
 
Donation:
It would be greatly appreciated for your donation to continue providing support for this plugin.
[​IMG]

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

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.

Explore more