From fcef6588574b9553408af9efcec3bae969ee0bd9 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 30 Aug 2015 16:05:29 +0200 Subject: [PATCH] Remove from/to_hell - Solves #252 --- mods/fishing | 2 +- mods/nether/nether/portal.lua | 59 ----------------------------------- 2 files changed, 1 insertion(+), 60 deletions(-) diff --git a/mods/fishing b/mods/fishing index ed53afef..d8777494 160000 --- a/mods/fishing +++ b/mods/fishing @@ -1 +1 @@ -Subproject commit ed53afef56ad8f6fa0de1eaf303fc619449a00a3 +Subproject commit d8777494b31187e8717dc2fa07f40834d3b7084f diff --git a/mods/nether/nether/portal.lua b/mods/nether/nether/portal.lua index 7ae9134a..518d787a 100755 --- a/mods/nether/nether/portal.lua +++ b/mods/nether/nether/portal.lua @@ -89,65 +89,6 @@ local function player_exists(name) return false end --- Chatcommands (edited) written by sss -minetest.register_chatcommand("to_hell", { - params = "", - description = "Send someone to hell", - func = function(name, pname) - if not minetest.get_player_privs(name).nether then - local self_player = minetest.get_player_by_name(name) - if self_player then - return false, "You can't send anyone to hell." - else - return false, "Something went wrong." - end - end - if not player_exists(pname) then - pname = name - end - local player = minetest.get_player_by_name(pname) - if not player then - minetest.chat_send_player(name, "Something went wrong.") - return false - end - minetest.chat_send_player(pname, "Go to hell !!!") - player_to_nether(player) - return true - end -}) - -minetest.register_chatcommand("from_hell", { - params = "", - description = "Extract from hell", - func = function(name, pname) - if not minetest.get_player_privs(name).nether then - local self_player = minetest.get_player_by_name(name) - if self_player then - return false, "You can't extract anyone from hell" - else - return false, "Something went wrong." - end - end - if not player_exists(pname) then - pname = name - end - local player = minetest.get_player_by_name(pname) - if not player then - minetest.chat_send_player(name, "Something went wrong.") - return false - end - minetest.chat_send_player(pname, "You are free now") - player_from_nether(player) - local pos_togo = {x = 0, y = 35, z = -7} - if minetest.setting_getbool("static_spawnpoint") ~= nil then - local stsp_conf = minetest.setting_get("static_spawnpoint") - pos_togo = {x = stsp_conf:split(",")[1]+0,y = stsp_conf:split(",")[2]+0,z = stsp_conf:split(",")[3]+0} - end - player:moveto(pos_togo) - return true - end -}) - minetest.register_on_respawnplayer(function(player) local pname = player:get_player_name() if not table.icontains(players_in_nether, pname) then