added configuration file to ease up configuration

master
codeandfix 2012-09-26 08:43:19 -07:00
parent c36ac5d150
commit 57316e6d38
3 changed files with 19 additions and 7 deletions

View File

@ -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]

View File

@ -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

5
settings.lua Normal file
View File

@ -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"