Sethome: Don't auto-grant home priv to singleplayer
authorWuzzy <almikes@aol.com>
Sat, 5 Nov 2016 23:49:25 +0000 (00:49 +0100)
committerparamat <mat.gregory@virginmedia.com>
Mon, 7 Nov 2016 14:13:45 +0000 (14:13 +0000)
mods/sethome/init.lua

index 28bfcef6c9f73f58d3093eb18c0018fdb3be5f53..dc431bc732c515f3ce2b695df273ecd6f3b924ec 100644 (file)
@@ -58,7 +58,10 @@ sethome.go = function(name)
        return false
 end
 
-minetest.register_privilege("home", "Can use /sethome and /home")
+minetest.register_privilege("home", {
+       description = "Can use /sethome and /home",
+       give_to_singleplayer = false
+})
 
 minetest.register_chatcommand("home", {
        description = "Teleport you to your home point",