getPlayerName is there for the benefit of stuff like authentication, so it doesn't break when some bonehead changes the name variable. It's also used by the vanilla game in most other places where a name variable is needed, though as said before, this makes them incompatible with AI connections to the server, so you have to imitate it if you want a bot to send a message through the chat without it having a blank name. This isn't that often an issue in Blockland, though I'm all for functions being as versatile and adaptable as possible for the benefit of modders.