Compare commits

...

5 Commits

Author SHA1 Message Date
Juraj Vajda 717ff750d0 some fixes 2016-01-19 21:47:42 +01:00
Juraj Vajda dc1115cc94 adding version number to prevent crash on nil value 2016-01-19 19:47:53 +00:00
Juraj Vajda 820a872437 changing privs from "faction_" to "factions_" 2016-01-19 19:39:36 +00:00
Juraj Vajda e0238f9359 README.md edited online with Bitbucket 2016-01-19 18:57:55 +00:00
Juraj Vajda 8bfd614d61 README.md edited online with Bitbucket 2016-01-19 18:54:40 +00:00
4 changed files with 22 additions and 13 deletions

View File

@ -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

View File

@ -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 " ..

0
factions.conf Normal file
View File

View File

@ -12,7 +12,7 @@
-- Contact sapier a t gmx net
-------------------------------------------------------------------------------
local factions_version = "0.1.6"
local factions_version = "0.1.5"
core.log("action", "MOD: factions (by sapier) loading ...")