This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:core:funref:is_creative [2019-10-02 15:38] 82.67.173.193 added "returns" section |
dev:core:funref:is_creative [2020-01-22 09:53] (current) admin ↷ Page moved from reference:advtrains:is_creative to dev:core:funref:is_creative |
||
---|---|---|---|
Line 39: | Line 39: | ||
<file lua is_creative.lua> | <file lua is_creative.lua> | ||
function advtrains.is_creative(name) | function advtrains.is_creative(name) | ||
- | | + | |
- | error(" | + | error(" |
- | end | + | end |
- | if minetest.check_player_privs(name, | + | if minetest.check_player_privs(name, |
- | return true | + | return true |
- | end | + | end |
- | return minetest.settings: | + | return minetest.settings: |
end | end | ||
</ | </ |