added configuration file to ease up configuration
parent
c36ac5d150
commit
57316e6d38
15
README.md
15
README.md
|
@ -16,9 +16,15 @@ Node Ownership (node_ownership)
|
|||
# Installation
|
||||
########################
|
||||
|
||||
[1. Change ServerAdmin name in head of init.lua if you want]
|
||||
2. put init.lua into /minetest/games/minetest_game/mods/node_ownership/
|
||||
3. restart server
|
||||
1. put init.lua and settings.lua into /minetest/games/minetest_game/mods/node_ownership/
|
||||
2. restart server
|
||||
|
||||
|
||||
|
||||
# Configuration
|
||||
########################
|
||||
|
||||
1. Change ServerAdmin name in settings.lua if you want [optional]
|
||||
|
||||
|
||||
|
||||
|
@ -28,7 +34,4 @@ Node Ownership (node_ownership)
|
|||
see: http://minetest.net/forum/viewtopic.php?id=846
|
||||
|
||||
|
||||
# Legend
|
||||
########################
|
||||
|
||||
[optional]
|
||||
|
|
6
init.lua
6
init.lua
|
@ -1,6 +1,10 @@
|
|||
-- load static configuration
|
||||
|
||||
dofile(minetest.get_modpath("node_ownership").."/settings.lua")
|
||||
|
||||
|
||||
-- declare local variables
|
||||
|
||||
_STATIC_grantor = "Serveradmin"
|
||||
minetest.register_privilege("griefing", {
|
||||
description = "Griefing Mode",
|
||||
give_to_singleplayer = true
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
-- Set the Textstring for Grantor names
|
||||
-- this Text will be shown if a user digs or places without permission.
|
||||
-- e.g. DoeMiner
|
||||
|
||||
_STATIC_grantor = "ServerAdmin"
|
Loading…
Reference in New Issue