Check for player for /me

This commit is contained in:
James Stevenson 2016-01-27 13:08:47 -05:00
parent ddee2ed0cf
commit ee38202cbc

View File

@ -167,13 +167,15 @@ minetest.register_on_chat_message(function(name, message)
end
end)
minetest.register_chatcommand("me", {
params = "<action>",
description = "Perform an action for nearby players.",
privs = {shout = true},
func = function(name, param)
local shouter = minetest.get_player_by_name(name)
if not shouter then
return
end
local spos = shouter:getpos()
-- Minetest library (modified)