7 lines
272 B
Lua
7 lines
272 B
Lua
local ns = firefly
|
|
|
|
-- Determine whether the target player is an admin.
|
|
local admin = minetest.settings:get("name") -- Assume this will never be changed live.
|
|
function ns.is_admin(name)
|
|
return name == admin or name == "singleplayer" and firefly.singleplayer_admin
|
|
end
|