This commit is contained in:
Alexsandro Percy 2022-04-07 19:41:39 -03:00
parent b2c206643f
commit 4a7c742d10

View File

@ -3,13 +3,11 @@ airutils.pilot_textures = {"pilot_clothes1.png","pilot_clothes2.png",}
minetest.register_chatcommand("au_uniform", { minetest.register_chatcommand("au_uniform", {
func = function(name, param) func = function(name, param)
if minetest.check_player_privs(name, {server=true}) then local player = minetest.get_player_by_name(name)
local player = minetest.get_player_by_name(name) if player then
if player then airutils.uniform_formspec(name)
airutils.uniform_formspec(name) else
else minetest.chat_send_player(name, "Something isn't working...")
minetest.chat_send_player(name, "Something isn't working...")
end
end end
end, end,
}) })