1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-13 05:50:31 +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:
sys4-fr 2018-01-06 18:51:14 +01:00
parent d727e7d624
commit 2869d4e006
2 changed files with 2 additions and 1 deletions

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 " .. factions.version , false)
return
end

View File

@ -23,6 +23,7 @@ factions_modpath = minetest.get_modpath("factions")
dofile (factions_modpath .. "/factions.lua")
dofile (factions_modpath .. "/chatcommands.lua")
factions.version = factions_version
factions.load()
factions_chat.init()