Compare commits
5 Commits
7fdecf7103
...
717ff750d0
Author | SHA1 | Date |
---|---|---|
Juraj Vajda | 717ff750d0 | |
Juraj Vajda | dc1115cc94 | |
Juraj Vajda | 820a872437 | |
Juraj Vajda | e0238f9359 | |
Juraj Vajda | 8bfd614d61 |
20
README.md
20
README.md
|
@ -4,9 +4,10 @@ It supports temporary faction members to allow mobs joining a faction.
|
|||
This mod is inspired by old faction mod sadly providing a chat interface only. If you currently used old faction mod you can use this one with very few changes.
|
||||
|
||||
## Notes: ##
|
||||
-Factions are world specific.
|
||||
-data storage is not compatible with old faction mod (sorry)
|
||||
-formspec gui is missing
|
||||
|
||||
* Factions are world specific.
|
||||
* data storage is not compatible with old faction mod (sorry)
|
||||
* formspec gui is missing
|
||||
|
||||
## License: ##
|
||||
WTFPL
|
||||
|
@ -18,6 +19,19 @@ WTFPL
|
|||
* 0.1.5
|
||||
|
||||
## Chatcommand Documentation: ##
|
||||
|
||||
initial privs have to be given by server admin, there are 2 privs for factions:
|
||||
|
||||
**factions_admin:**
|
||||
|
||||
Can do everything with any faction including creating a faction.
|
||||
|
||||
**factions_user:**
|
||||
|
||||
players allowed to use factions in general.
|
||||
|
||||
Further there can be faction admins, those can invite/remove any player having factions_user right to the faction they are admin for, as well as give other users admin right for their faction too.
|
||||
|
||||
### User commands: ###
|
||||
|
||||
**/factions** -> info on your current factions
|
||||
|
|
|
@ -119,7 +119,7 @@ function factions_chat.cmdhandler(playername,parameter)
|
|||
|
||||
--show factions mod version
|
||||
if cmd == "version" then
|
||||
minetest.chat_send_player(playername, "Factions: version " .. factions_version , false)
|
||||
minetest.chat_send_player(playername, "Factions: version 0.1.5", false)
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -254,15 +254,9 @@ function factions_chat.cmdhandler(playername,parameter)
|
|||
end
|
||||
|
||||
if factions.set_free(params[2],value) then
|
||||
minetest.chat_send_player(playername,
|
||||
"Factions: free to join for " .. params[2] ..
|
||||
" has been set to " .. params[3],
|
||||
false)
|
||||
minetest.chat_send_player(playername, "Factions: free to join for "..params[2].." has been set to "..params[3], false)
|
||||
else
|
||||
minetest.chat_send_player(playername,
|
||||
"Factions: FAILED to set free to join for " ..
|
||||
params[2],
|
||||
false)
|
||||
minetest.chat_send_player(playername, "Factions: FAILED to set free to join for "..params[2], false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -300,6 +294,7 @@ function factions_chat.cmdhandler(playername,parameter)
|
|||
for i=4, #params, 1 do
|
||||
desc = desc .. " " .. params[i]
|
||||
end
|
||||
|
||||
if factions.set_description(params[2],desc) then
|
||||
minetest.chat_send_player(playername,
|
||||
"Factions: updated description of faction " ..
|
||||
|
|
Loading…
Reference in New Issue