Make playereffects autosaving optional

master
James Stevenson 2016-02-15 07:33:29 -05:00
parent 1e7a82d0a9
commit 176658ce0e
3 changed files with 30 additions and 51 deletions

View File

@ -1,2 +0,0 @@
#tnt_requires_priv = false
# Ignite TNT only with disallowednodes priv

View File

@ -14,71 +14,52 @@
# Whether fire should be disabled (all fire nodes will instantly disappear)
#disable_fire = false
# Whether steel tools, torches and cobblestone should be given to new players
# Whether steel tools, wool, and gold should be given to new players
#give_initial_stuff = false
# Whether the TNT mod should be enabled
### TNT
## Whether the TNT mod should be enabled
#enable_tnt = <true in singleplayer, false in multiplayer>
# The radius of a TNT explosion
## The radius of a TNT explosion
#tnt_radius = 3
### Beds
# Enable beds setting player respawn
## Enable beds setting player respawn
#enable_bed_respawn = true
### Legacy Replacer
# Replace legacy fences
### Xconnected
## Replace legacy fences (deprecated)
#replace_legacy_fences = false
# Replace legacy panes
## Replace legacy panes (deprecated)
#replace_legacy_panes = false
## Replace legacy walls (deprecated)
#replace_legacy_walls = false
### Server Essentials
#
#
#max_afk_time = 600
# Number of seconds between activity checks
#afk_check_interval = 1
--AFK_WARN_TIME = 20 --Number of seconds before being kicked that a player will start to be warned
#afk_warn_time = 20
--SHOW_FIRST_TIME_JOIN_MSG = true --Whether or not to show FIRST_TIME_JOIN_MSG if a new player joins
#show_first_time_join_msg") or true
--FIRST_TIME_JOIN_MSG = " has joined the server for the first time, Welcome!" --Message to broadcast to all players when a new player joins the server, will follow the players name
local name = minetest.setting_get("server_name") or "[SERVER]"
FIRST_TIME_JOIN_MSG = " has joined the server for the first time! Welcome to "..name --minetest.setting_get("server_name")
--BROADCAST_PREFIX = "[SERVER]" --All messages sent with the /broadcast command will be prefixed with this
BROADCAST_PREFIX = minetest.setting_get("broadcast_prefix") or "[SERVER: "..name.."]" or "[SERVER]"
DISALLOWED_NODES = { --These nodes will be immediatly removed if they are placed. Players with the disallowednodes priv can place them
"tnt:tnt",
}
### DCB
## Check for disallowednodes priv when igniting TNT
#tnt_requires_priv = false
## Check for fglava priv when placing lava bucket
#lava_requires_priv = false
--REMOVE_BONES = false --If true, remove bones after REMOVE_BONES_TIME seconds
REMOVE_BONES = minetest.setting_get("remove_bones") or false
--REMOVE_BONES_TIME = 600 --Remove bones after this amount of time (seconds)
REMOVE_BONES_TIME = minetest.setting_get("remove_bones_time") or 600
--KICK_CHATSPAM = true --Ilf true, players who send a chat message longer than MAX_CHAT_MSG_LENGTH will be kicked
KICK_CHATSPAM = minetest.setting_get("kick_chatspam") or true
--MAX_CHAT_MSG_LENGTH = 400
MAX_CHAT_MSG_LENGTH = minetest.setting_get("max_chat_msg_length") or 400
## DCB
# Whether to show the PM button on player inventory formspec.
#show_pm = false
# Whether to enable experimental features:
#enable_experimental
## CaveRealms
# Enable falling icicles:
### CaveRealms
## Enable falling icicles
#caverealms.falling_icicles = true
### Player Effects
## Write playereffects database file periodically (0 to disable)
#playereffects_autosave = 0

View File

@ -6,10 +6,10 @@
playereffects.use_hud = true
-- Wheather to use autosave (true or false)
playereffects.use_autosave = true
playereffects.use_autosave = minetest.is_yes(minetest.setting_get("playereffects_autosave")) --true
-- The time interval between autosaves, in seconds (only used when use_autosave is true)
playereffects.autosave_time = 20
playereffects.autosave_time = tonumber(minetest.setting_get("playereffects_autosave")) or 20
-- If true, this loads some examples from example.lua.
playereffects.use_examples = false