Fix: name missing from broadcast
This commit is contained in:
parent
87a31a1abb
commit
4e21583536
|
@ -36,7 +36,7 @@ function faction_convert()
|
||||||
factions.parcels.set(parcelpos, facname)
|
factions.parcels.set(parcelpos, facname)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
os.rename(path, minetest.get_worldpath() .. "/factions_old.txt")
|
os.rename(path, minetest.get_worldpath() .. "/factions_old.conf")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -809,12 +809,12 @@ function factions.set_rank_name(name, oldrank, newrank)
|
||||||
|
|
||||||
if oldrank == faction.default_leader_rank then
|
if oldrank == faction.default_leader_rank then
|
||||||
faction.default_leader_rank = newrank
|
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
|
end
|
||||||
|
|
||||||
if oldrank == faction.default_rank then
|
if oldrank == faction.default_rank then
|
||||||
faction.default_rank = newrank
|
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
|
end
|
||||||
|
|
||||||
factions.on_set_rank_name(name, oldrank, newrank)
|
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)
|
factions.on_delete_rank(name, rank, newrank)
|
||||||
if rank == faction.default_leader_rank then
|
if rank == faction.default_leader_rank then
|
||||||
faction.default_leader_rank = newrank
|
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
|
end
|
||||||
if rank == faction.default_rank then
|
if rank == faction.default_rank then
|
||||||
faction.default_rank = newrank
|
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
|
end
|
||||||
|
|
||||||
factions.factions.set(name, faction)
|
factions.factions.set(name, faction)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user