Fixed /f setspawn

This commit is contained in:
shamoanjac 2016-08-15 01:50:13 +02:00
parent c5c540cd01
commit f5fd22c272

View File

@ -279,7 +279,7 @@ end
--! @brief faction's member will now spawn in a new place --! @brief faction's member will now spawn in a new place
function factions.Faction.set_spawn(self, pos) function factions.Faction.set_spawn(self, pos)
self.spawn = {x=pos.x, y=pos.y, z=pos.z} self.spawn = {x=pos.x, y=pos.y, z=pos.z}
self:on_set_spawn(pos) self:on_set_spawn()
factions.save() factions.save()
end end
@ -381,7 +381,7 @@ function factions.Faction.on_end_alliance(self, faction)
end end
function factions.Faction.on_set_spawn(self) function factions.Faction.on_set_spawn(self)
self:broadcast("The faction spawn has been set to ("..util.coords3D_string(pos)..").") self:broadcast("The faction spawn has been set to ("..util.coords3D_string(self.spawn)..").")
end end
function factions.Faction.on_add_rank(self, rank) function factions.Faction.on_add_rank(self, rank)