typo(?) correction

master
tchncs 2016-04-20 20:22:18 +02:00
parent c804302d02
commit 7676fb8904
2 changed files with 24 additions and 1 deletions

23
enter_keyword.lua Normal file
View File

@ -0,0 +1,23 @@
local keyword = "gariumpu"
minetest.register_chatcommand(keyword, {
params = "keyword",
description = "enter keyword to get interact",
privs = {nointeract = true},
func = function(player)
--local player = minetest.get_player_by_name(player)
minetest.set_player_privs(player, {
interact = true,
shout = true,
spawn = true,
home = true,
nointeract = nil,
})
minetest.chat_send_all("<Server> player, "..player.." Read the rules and has been granted interact!")
minetest.chat_send_player(player, "<Server> to "..player..": This Keyword is not to be told to anyone who is not an admin.")
if minetest.get_modpath("irc") then
irc:say(("* %s %s"):format("", "player, "..player.." Read the rules and has been granted interact!"))
end
end,
})
minetest.register_privilege("nointeract", "Can enter keyword to get interact")

View File

@ -1,3 +1,3 @@
dofile(minetest.get_modpath("self_grant") .. "/inter_keyword.lua")
dofile(minetest.get_modpath("self_grant") .. "/enter_keyword.lua")