remove give_initial_stuff mod .. in public servers for sanity of acounts

* due server will be easy to join, must be removed cos:
  players will create new account only to access to new stuff easyle
* .. and not, we dont build a server with hard to join settings..
master
mckaygerhard 2021-12-13 20:15:02 -06:00
parent 624ce87446
commit 271e05d8c7
6 changed files with 0 additions and 86 deletions

View File

@ -991,10 +991,6 @@ flame_sound = true
# Whether lavacooling should be enabled.
enable_lavacooling = true
# Whether the stuff in initial_stuff should be given to new players
# its depends of the configured at the initital_stuff_mod
give_initial_stuff = false
# Whether the TNT mod should be enabled
enable_tnt = true

View File

@ -1,8 +0,0 @@
Minetest Game mod: give_initial_stuff
=====================================
See license.txt for license information.
Authors of source code
----------------------
Perttu Ahola (celeron55) <celeron55@gmail.com> (MIT)
Various Minetest developers and contributors (MIT)

View File

@ -1,2 +0,0 @@
default

View File

@ -1,44 +0,0 @@
local stuff_string = minetest.settings:get("initial_stuff") or
"default:pick_steel,default:axe_steel,default:shovel_steel," ..
"default:torch 99,default:cobble 99"
give_initial_stuff = {
items = {}
}
function give_initial_stuff.give(player)
minetest.log("action",
"Giving initial stuff to player " .. player:get_player_name())
local inv = player:get_inventory()
for _, stack in ipairs(give_initial_stuff.items) do
inv:add_item("main", stack)
end
end
function give_initial_stuff.add(stack)
give_initial_stuff.items[#give_initial_stuff.items + 1] = ItemStack(stack)
end
function give_initial_stuff.clear()
give_initial_stuff.items = {}
end
function give_initial_stuff.add_from_csv(str)
local items = str:split(",")
for _, itemname in ipairs(items) do
give_initial_stuff.add(itemname)
end
end
function give_initial_stuff.set_list(list)
give_initial_stuff.items = list
end
function give_initial_stuff.get_list()
return give_initial_stuff.items
end
give_initial_stuff.add_from_csv(stuff_string)
if minetest.settings:get_bool("give_initial_stuff") then
minetest.register_on_newplayer(give_initial_stuff.give)
end

View File

@ -1,25 +0,0 @@
License of source code
----------------------
The MIT License (MIT)
Copyright (C) 2012-2016 Perttu Ahola (celeron55) <celeron55@gmail.com>
Copyright (C) 2012-2016 Various Minetest developers and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
For more details:
https://opensource.org/licenses/MIT

View File

@ -19,9 +19,6 @@ flame_sound (Flame sound) bool true
# Enable lavacooling.
enable_lavacooling (Lavacooling) bool true
# if true, the values in mod "initial_stuffs" will be at each start of player respawn.
give_initial_stuff (Give initial items) bool false
# If enabled, players respawn at the bed they last lay on instead of normal
# spawn.
# This setting is only read at startup.