mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 18:20:36 +01:00
[Fix issue #17] Fix faction crash when invoking the faction command : /factions version
To use factions admin command, the player must have the the faction_admin privilege.
This commit is contained in:
parent
d727e7d624
commit
2869d4e006
@ -119,7 +119,7 @@ function factions_chat.cmdhandler(playername,parameter)
|
|||||||
|
|
||||||
--show factions mod version
|
--show factions mod version
|
||||||
if cmd == "version" then
|
if cmd == "version" then
|
||||||
minetest.chat_send_player(playername, "Factions: version " .. factions_version , false)
|
minetest.chat_send_player(playername, "Factions: version " .. factions.version , false)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ factions_modpath = minetest.get_modpath("factions")
|
|||||||
dofile (factions_modpath .. "/factions.lua")
|
dofile (factions_modpath .. "/factions.lua")
|
||||||
dofile (factions_modpath .. "/chatcommands.lua")
|
dofile (factions_modpath .. "/chatcommands.lua")
|
||||||
|
|
||||||
|
factions.version = factions_version
|
||||||
factions.load()
|
factions.load()
|
||||||
factions_chat.init()
|
factions_chat.init()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user