Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Koekjeee, Apr 18, 2017.
I want to make a realname command but i can't get it? How can i make this?
Can you please describe fully what you need?
Do you want a command such as "feed" and it feeds you?
It sounds like he wants a plugin to find out the real name of a player. I am going to go on a limb and assume he wants to get the real username from someone with a nickname. My interpretation of the question could be wrong though!
That's pretty easy and your question is pretty vague. If you're looking for the target, you just have to iterate through online players using a for loop and see if the given string name (supposedly the first argument) equals to the enhanced Player object's display name with no color (ChatColor#stripColor(String)).
Your interpretation is fine, /realname command is a command Essentials has which returns the real name of a given player nickname.