diff --git a/trike_entities.lua b/trike_entities.lua index 3b87d87..b1f87d2 100644 --- a/trike_entities.lua +++ b/trike_entities.lua @@ -269,8 +269,12 @@ minetest.register_entity("trike:trike", { if not puncher or not puncher:is_player() then return end + local is_admin = false + is_admin = minetest.check_player_privs(puncher, {server=true}) local name = puncher:get_player_name() - if self.owner and self.owner ~= name and self.owner ~= "" then return end + if self.owner and self.owner ~= name and self.owner ~= "" then + if is_admin == false then return end + end if self.owner == nil then self.owner = name end