mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-21 14:53:48 +01:00
Fix grammar and add README
This commit is contained in:
parent
cc0ae096d8
commit
d77af6ecac
@ -16,6 +16,7 @@ These commands can be used by anyone:
|
||||
- `/factions create <faction> <password>`: Create a new faction
|
||||
- `/factions list`: List available factions
|
||||
- `/factions info <faction>`: See information on a faction. For faction with lot of member we can choose the length of the member's list that's going to be shown by adding `player_factions.max_members_list = int` to minetest.conf, default is 50.
|
||||
- `/factions player_info <player>` See information on a player : joined, owned and administered factions.
|
||||
- `/factions join <faction> <password>`: Join an existing faction
|
||||
- `/factions leave [faction]`: Leave your faction
|
||||
|
||||
|
6
init.lua
6
init.lua
@ -301,7 +301,7 @@ local function handle_command(name, param)
|
||||
minetest.chat_send_player(name, S("@1 is in the following factions: @2", player_name, str_member, str_owner))
|
||||
local owned_factions = factions.get_owned_factions(player_name)
|
||||
if not owned_factions then
|
||||
minetest.chat_send_player(name, S("She/He is the owner of no faction"))
|
||||
minetest.chat_send_player(name, S("This player is the owner of no faction"))
|
||||
else
|
||||
for _,v in ipairs(owned_factions) do
|
||||
if str_owner == "" then
|
||||
@ -310,10 +310,10 @@ local function handle_command(name, param)
|
||||
str_owner = str_owner..", "..v
|
||||
end
|
||||
end
|
||||
minetest.chat_send_player(name, S("She/He is the owner of the following factions: @1", str_owner))
|
||||
minetest.chat_send_player(name, S("This player is the owner of the following factions: @1", str_owner))
|
||||
end
|
||||
if minetest.get_player_privs(player_name).playerfactions_admin then
|
||||
minetest.chat_send_player(name, S("@1 has the playerfactions_admin privilege so she/he can admin every factions", player_name))
|
||||
minetest.chat_send_player(name, S("@1 has the playerfactions_admin privilege so they can admin every faction", player_name))
|
||||
end
|
||||
end
|
||||
elseif action == "join" then
|
||||
|
Loading…
Reference in New Issue
Block a user