forked from mtcontrib/factions
Update /f (un)claim help
This commit is contained in:
parent
193828602b
commit
7fa6abd4aa
@ -271,7 +271,7 @@ function factions.claim_all(player, faction)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function factions.claim_help(player, func)
|
function factions.claim_help(player, func)
|
||||||
local text = "<o,one, a,auto, f,fill, s,square, c,circle, all, h,help>, <none, number>"
|
local text = "All params for /f claim: <o,one, a,auto, f,fill, s,square, c,circle, all, h,help>, <none, number>"
|
||||||
|
|
||||||
if func == "o" or func == "one" then
|
if func == "o" or func == "one" then
|
||||||
text = "/f claim o\n/f claim one\n Claim one parcel."
|
text = "/f claim o\n/f claim one\n Claim one parcel."
|
||||||
@ -396,7 +396,7 @@ function factions.unclaim_all(player, faction)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function factions.unclaim_help(player, func)
|
function factions.unclaim_help(player, func)
|
||||||
local text = "<o,one, a,auto, f,fill, s,square, c,circle, all, h,help>, <none, number>"
|
local text = "All params for /f unclaim: <o,one, a,auto, f,fill, s,square, c,circle, all, h,help>, <none, number>"
|
||||||
|
|
||||||
if func == "o" or func == "one" then
|
if func == "o" or func == "one" then
|
||||||
text = "/f unclaim o\n/f unclaim one\n Unclaim one parcel."
|
text = "/f unclaim o\n/f unclaim one\n Unclaim one parcel."
|
||||||
@ -415,8 +415,7 @@ function factions.unclaim_help(player, func)
|
|||||||
minetest.chat_send_player(player, text)
|
minetest.chat_send_player(player, text)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_leaveplayer(
|
minetest.register_on_leaveplayer(function(player)
|
||||||
function(player)
|
|
||||||
auto_list[player:get_player_name()] = nil
|
auto_list[player:get_player_name()] = nil
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user