Update init.lua
This commit is contained in:
parent
e91b7c0521
commit
9bc4491f2c
1 changed files with 4 additions and 8 deletions
|
@ -21,15 +21,12 @@ minetest.register_chatcommand("bdname_add", {
|
|||
minetest.chat_send_player(name, "added "..param.." to the list of banned words")
|
||||
local serial_table = minetest.serialize(disallowed_names)
|
||||
storage:set_string("disallowed_names", serial_table)
|
||||
|
||||
else
|
||||
minetest.chat_send_player(name, "You need to add a name\n/bdname_add <name>")
|
||||
end
|
||||
|
||||
end
|
||||
})
|
||||
|
||||
|
||||
--removes a name from disallowed names
|
||||
minetest.register_chatcommand("bdname_remove",{
|
||||
description = "removes a name from disallowed names",
|
||||
|
@ -45,7 +42,6 @@ minetest.register_chatcommand("bdname_remove",{
|
|||
storage:set_string("disallowed_names", minetest.serialize(disallowed_names))
|
||||
end
|
||||
end
|
||||
|
||||
})
|
||||
|
||||
--list disallowed names
|
||||
|
|
Loading…
Reference in a new issue