forked from Sokomine/yl_speak_up
added hint that players with npc_talk_admin priv can set names of npc to those of players
This commit is contained in:
parent
e69e2f4c02
commit
698472c16f
@ -62,8 +62,10 @@ yl_speak_up.input_fs_initial_config = function(player, formname, fields)
|
||||
elseif(not(fields.n_npc) or string.len(fields.n_npc) < 2) then
|
||||
error_msg = "The name of your NPC needs to be\nat least two characters long."
|
||||
elseif(minetest.check_player_privs(fields.n_npc, {interact=true})
|
||||
and not(minetest.check_player_privs(player, {npc_talk_master=true}))) then
|
||||
error_msg = "You cannot name your NPC\nafter an existing player."
|
||||
and not(minetest.check_player_privs(player, {npc_talk_master=true}))
|
||||
and not(minetest.check_player_privs(player, {npc_talk_admin=true}))) then
|
||||
error_msg = "You cannot name your NPC after an existing player.\n"..
|
||||
"Only those with the npc_talk_admin priv can do so."
|
||||
elseif(not(fields.n_description) or string.len(fields.n_description) < 2) then
|
||||
error_msg = "Please provide a description of your NPC!"
|
||||
-- sensible length limit
|
||||
|
Loading…
Reference in New Issue
Block a user