added warning message aganst Skinsdb

This commit is contained in:
Alexsandro Percy 2022-04-08 17:24:37 -03:00
parent 498c2cf3a0
commit 753243c84e
1 changed files with 7 additions and 4 deletions

View File

@ -1,9 +1,16 @@
airutils.pilot_textures = {"pilot_clothes1.png","pilot_clothes2.png","pilot_clothes3.png","pilot_clothes4.png"}
local skinsdb_mod_path = minetest.get_modpath("skinsdb")
minetest.register_chatcommand("au_uniform", {
func = function(name, param)
local player = minetest.get_player_by_name(name)
if skinsdb_mod_path then
minetest.chat_send_player(name, "This tool is incompatible with skinsdb.")
return
end
if player then
airutils.uniform_formspec(name)
else
@ -40,10 +47,6 @@ function airutils.set_player_skin(player, skin)
if player:get_attribute("set_skin:player_skin") ~= nil and player:get_attribute("set_skin:player_skin") ~= "" then
old_texture = player:get_attribute("set_skin:player_skin")
end
elseif skins then
if skins.skins[name] ~= nil then
old_texture = skins.skins[name]
end
elseif u_skins then
if u_skins.u_skins[name] ~= nil then
old_texture = u_skins.u_skins[name]