From e2e868b802a7ef6af082f476d38cde7bbf0c7281 Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Mon, 22 Oct 2018 22:55:19 -0500 Subject: [PATCH] Bug fix nag text. --- factions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/factions.lua b/factions.lua index f399558..921ae31 100644 --- a/factions.lua +++ b/factions.lua @@ -971,10 +971,10 @@ function(player) if faction.no_parcel ~= -1 then local now = os.time() - faction.no_parcel local l = factions_config.maximum_parcelless_faction_time - minetest.chat_send_player(player:get_player_name(),"This faction will disband in "..l-now.." seconds, because it has no parcels.") + minetest.chat_send_player(name,"This faction will disband in "..l-now.." seconds, because it has no parcels.") end - if faction:has_permission(player, "diplomacy") then - for _ in pairs(faction.request_inbox) do minetest.chat_send_player(player:get_player_name(),"You have diplomatic requests in the inbox.") break end + if faction:has_permission(name, "diplomacy") then + for _ in pairs(faction.request_inbox) do minetest.chat_send_player(name,"You have diplomatic requests in the inbox.") break end end end end