Fix: name missing from broadcast

This commit is contained in:
Coder12a 2019-01-26 11:03:09 -06:00
parent 87a31a1abb
commit 4e21583536
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ function faction_convert()
factions.parcels.set(parcelpos, facname)
end
end
os.rename(path, minetest.get_worldpath() .. "/factions_old.txt")
os.rename(path, minetest.get_worldpath() .. "/factions_old.conf")
end
end
end

View File

@ -809,12 +809,12 @@ function factions.set_rank_name(name, oldrank, newrank)
if oldrank == faction.default_leader_rank then
faction.default_leader_rank = newrank
factions.broadcast("The default leader rank has been set to " .. newrank)
factions.broadcast(name, "The default leader rank has been set to " .. newrank)
end
if oldrank == faction.default_rank then
faction.default_rank = newrank
factions.broadcast("The default rank given to new players is set to " .. newrank)
factions.broadcast(name, "The default rank given to new players is set to " .. newrank)
end
factions.on_set_rank_name(name, oldrank, newrank)
@ -870,11 +870,11 @@ function factions.delete_rank(name, rank, newrank)
factions.on_delete_rank(name, rank, newrank)
if rank == faction.default_leader_rank then
faction.default_leader_rank = newrank
factions.broadcast("The default leader rank has been set to "..newrank)
factions.broadcast(name, "The default leader rank has been set to "..newrank)
end
if rank == faction.default_rank then
faction.default_rank = newrank
factions.broadcast("The default rank given to new players is set to "..newrank)
factions.broadcast(name, "The default rank given to new players is set to "..newrank)
end
factions.factions.set(name, faction)