From 271e05d8c7b7a75b37469bbb6324a35d9be17019 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Mon, 13 Dec 2021 20:15:02 -0600 Subject: [PATCH] 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.. --- minetest.conf | 4 --- mods/give_initial_stuff/README.txt | 8 ------ mods/give_initial_stuff/depends.txt | 2 -- mods/give_initial_stuff/init.lua | 44 ----------------------------- mods/give_initial_stuff/license.txt | 25 ---------------- settingtypes.txt | 3 -- 6 files changed, 86 deletions(-) delete mode 100644 mods/give_initial_stuff/README.txt delete mode 100644 mods/give_initial_stuff/depends.txt delete mode 100644 mods/give_initial_stuff/init.lua delete mode 100644 mods/give_initial_stuff/license.txt diff --git a/minetest.conf b/minetest.conf index bbbf830..db4f0e2 100644 --- a/minetest.conf +++ b/minetest.conf @@ -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 diff --git a/mods/give_initial_stuff/README.txt b/mods/give_initial_stuff/README.txt deleted file mode 100644 index cbd240f..0000000 --- a/mods/give_initial_stuff/README.txt +++ /dev/null @@ -1,8 +0,0 @@ -Minetest Game mod: give_initial_stuff -===================================== -See license.txt for license information. - -Authors of source code ----------------------- -Perttu Ahola (celeron55) (MIT) -Various Minetest developers and contributors (MIT) diff --git a/mods/give_initial_stuff/depends.txt b/mods/give_initial_stuff/depends.txt deleted file mode 100644 index 3a7daa1..0000000 --- a/mods/give_initial_stuff/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -default - diff --git a/mods/give_initial_stuff/init.lua b/mods/give_initial_stuff/init.lua deleted file mode 100644 index 4815bd8..0000000 --- a/mods/give_initial_stuff/init.lua +++ /dev/null @@ -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 diff --git a/mods/give_initial_stuff/license.txt b/mods/give_initial_stuff/license.txt deleted file mode 100644 index 8134c92..0000000 --- a/mods/give_initial_stuff/license.txt +++ /dev/null @@ -1,25 +0,0 @@ -License of source code ----------------------- - -The MIT License (MIT) -Copyright (C) 2012-2016 Perttu Ahola (celeron55) -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 diff --git a/settingtypes.txt b/settingtypes.txt index 71a6a02..84d884f 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -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.