Redrield / NameChanger

A nick plugin (ab)using mixins

NameChanger

A nick plugin that works by (ab)using mixins.

NameChanger is a plugin that essentially makes the server believe that players are named differently than they actually are, without actually performing the name changing process on Mojang’s end.

Commands

/name set <name> [target] - Sets target’s name (Or your own, if target isn’t specified)

Requires permission: namechanger.changename

/name reset [target] - Resets target’s name (Or your own, if target isn’t specified) to the actual name of their account.

Requires permission: namechanger.reset

/name realname <player> - Gets the original, or real name of the target player.

Requires permission: namechanger.realname.get

How does it work?

NameChanger works by essentially hijacking server files using mixins, add adding custom checks for nicknames. The actual code can be found here, but in short what it does is check if there is a nickname stored for a user with the id provided by the proper method, and if there is creates a new GameProfile, identical in all ways but name, and returns that from the method.

Category: Chat

Published on Jul 04, 2017

266 views

29 total downloads

Licensed under MPL-2.0

Pages

Members