projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5868274
)
Sethome: Don't auto-grant home priv to singleplayer
author
Wuzzy
<almikes@aol.com>
Sat, 5 Nov 2016 23:49:25 +0000
(
00:49
+0100)
committer
paramat
<mat.gregory@virginmedia.com>
Mon, 7 Nov 2016 14:13:45 +0000
(14:13 +0000)
mods/sethome/init.lua
patch
|
blob
|
history
diff --git
a/mods/sethome/init.lua
b/mods/sethome/init.lua
index 28bfcef6c9f73f58d3093eb18c0018fdb3be5f53..dc431bc732c515f3ce2b695df273ecd6f3b924ec 100644
(file)
--- a/
mods/sethome/init.lua
+++ b/
mods/sethome/init.lua
@@
-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",