hey guys, i made a chat plugin, and have a question now. when i /nick me (essentials), my name dont change, bcause i took only player.getName(). what i have to do to get the essentials displayname? thanks!
This will set the players name to whatever is the second argument, such as /nick me Johnzeh2 if(cmd.getName().equalsIgnoreCase("nick") { if(args[0].equalsIgnoreCase("me") { player.setDisplayName(args[1]); As for getting the players display name from essentials, do player.getDisplayName(); You can do more with that like color intergration if you want to.