try this: Nick Cancel
addEventHandler("onPlayerChangeNick",root,function(oldN,newN)
cancelEvent(true,"Sorry, you can not change your nick.") --Cancel event
if (not wasEventCancelled()) then outputDebugString("Sorry, the event was not cancelled, please go back to the forums for more help") end --if even wasn't cancelled, output that it wasn't
end)