.
This commit is contained in:
parent
c86010aa0a
commit
f219e1f955
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1,2 +0,0 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
1
README.md
Normal file
1
README.md
Normal file
@ -0,0 +1 @@
|
||||
# afk cmd
|
0
depends.txt
Normal file
0
depends.txt
Normal file
9
init.lua
Normal file
9
init.lua
Normal file
@ -0,0 +1,9 @@
|
||||
minetest.register_chatcommand("afk", {
|
||||
description = "Tell everyone you are afk.",
|
||||
privs = {interact=true},
|
||||
func = function ( name, param )
|
||||
local player = minetest.get_player_by_name(name)
|
||||
minetest.chat_send_all(name.." is AFK! "..param)
|
||||
return true
|
||||
end,
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user