/helpcmdplus -> /commands and converted to real command, depending on shout, extendet output
This commit is contained in:
parent
2d85e04b4d
commit
ef633e3130
73
commands.lua
73
commands.lua
@ -33,64 +33,21 @@ minetest.register_chatcommand("re", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
--[[ local cmd ="/away"
|
minetest.register_chatcommand("commands", {
|
||||||
if message:sub(0, #cmd) == cmd then
|
params = "<player>",
|
||||||
if message == '/away' then
|
privs = {shout=true},
|
||||||
local player = minetest.env:get_player_by_name(name)
|
description = "tells you some available commands",
|
||||||
minetest.chat_send_all(name.." is now away from keyboard!")
|
func = function(name, param)
|
||||||
irc:say(string.format('*** %s is now away from keyboard.', player:get_player_name()))
|
minetest.chat_send_player(name, "use /away for public afk note from server.")
|
||||||
return true
|
minetest.chat_send_player(name, "use /re for public no-longer-afk note from server.")
|
||||||
end
|
minetest.chat_send_player(name, "use /sethome to set your homepoint.")
|
||||||
end
|
minetest.chat_send_player(name, "use /home to go back to your homepoint.")
|
||||||
local cmd ="/re"
|
minetest.chat_send_player(name, "use /spawn to teleporting you to the spawnpoint.")
|
||||||
if message:sub(0, #cmd) == cmd then
|
minetest.chat_send_player(name, "use /help see the full list of available commands.")
|
||||||
if message == '/re' then
|
minetest.chat_send_player(name, "use /help <command> for command info.")
|
||||||
local player = minetest.env:get_player_by_name(name)
|
minetest.chat_send_player(name, "use /commands to show this helpmessage.")
|
||||||
minetest.chat_send_all(name.." is no longer away from keyboard!")
|
end,
|
||||||
irc:say(string.format('*** %s is no longer away from keyboard.', player:get_player_name()))
|
})
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
local cmd ="/hacmd"
|
|
||||||
if message:sub(0, #cmd) == cmd then
|
|
||||||
if message == '/hacmd' then
|
|
||||||
--local player = minetest.env:get_player_by_name(name)
|
|
||||||
minetest.chat_send_all("additional Commands")
|
|
||||||
minetest.chat_send_all("===================")
|
|
||||||
minetest.chat_send_all("use /away for afk note from server.")
|
|
||||||
minetest.chat_send_all("use /re for no-longer-afk note from server.")
|
|
||||||
minetest.chat_send_all("use /spawn to teleporting you to the spawnpoint.")
|
|
||||||
minetest.chat_send_all("use /helpcmdplus to show this helpmessage.")
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
local cmd ="/helpcmdplus"
|
|
||||||
if message:sub(0, #cmd) == cmd then
|
|
||||||
if message == '/helpcmdplus' then
|
|
||||||
local player = minetest.env:get_player_by_name(name)
|
|
||||||
minetest.chat_send_all("additional Comands")
|
|
||||||
minetest.chat_send_all("==================")
|
|
||||||
minetest.chat_send_player(player:get_player_name(),"use /away for afk note from server.")
|
|
||||||
minetest.chat_send_player(player:get_player_name(),"use /re for no-longer-afk note from server.")
|
|
||||||
minetest.chat_send_player(player:get_player_name(),"use /spawn to teleporting you to the Spawnpoint.")
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
--Deds to Kahrl
|
|
||||||
minetest.register_on_newplayer(function(player)
|
|
||||||
player:setpos(spawn)
|
|
||||||
return true
|
|
||||||
end)
|
|
||||||
|
|
||||||
--Deds to Kahrl
|
|
||||||
minetest.register_on_respawnplayer(function(player, pos)
|
|
||||||
player:setpos(spawn)
|
|
||||||
return true
|
|
||||||
end)
|
|
||||||
|
|
||||||
--]]
|
|
||||||
|
|
||||||
-- Commands, originally by Grailtest @0-afflatus
|
-- Commands, originally by Grailtest @0-afflatus
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user