mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Now supports renaming existing chars too
This commit is contained in:
@@ -1268,6 +1268,9 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts
|
||||
var/new_name = reject_bad_name(raw_name, 1)
|
||||
if(new_name)
|
||||
real_name = new_name
|
||||
if(isnewplayer(user))
|
||||
var/mob/new_player/N = user
|
||||
N.new_player_panel_proc()
|
||||
else
|
||||
to_chat(user, "<font color='red'>Invalid name. Your name should be at least 2 and at most [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and .</font>")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user