Remove: util

This commit is contained in:
Coder12a 2019-12-31 19:01:15 -06:00
parent b0301130dc
commit e16e72956f
2 changed files with 4 additions and 11 deletions

View File

@ -11,18 +11,10 @@ factions.can_create_faction = function(name)
end
end
util = {
coords3D_string = function(coords)
return coords.x..", "..coords.y..", "..coords.z
end
}
starting_ranks = {["leader"] = {"build", "door", "container", "name", "description", "motd", "invite", "kick"
, "spawn", "with_draw", "territory", "claim", "access", "disband", "flags", "ranks", "promote"},
["moderator"] = {"claim", "door", "build", "spawn", "invite", "kick", "promote", "container"},
["member"] = {"build", "container", "door"}
}
["member"] = {"build", "container", "door"}}
-- Faction permissions:
--

View File

@ -68,8 +68,9 @@ function factions.on_end_enemy(name, faction)
factions.broadcast(name, "This faction is no longer at war with " .. faction .. "!")
end
function factions.on_set_spawn(name)
local faction = factions.factions.get(name)
factions.broadcast(name, "The faction spawn has been set to (" .. util.coords3D_string(faction.spawn) .. ").")
local faction = factions.factions.get(name)
local spawn_str = faction.spawn.x .. ", " .. faction.spawn.y .. ", " .. faction.spawn.z
factions.broadcast(name, "The faction spawn has been set to (" .. spawn_str .. ").")
end
function factions.on_add_rank(name, rank)
local faction = factions.factions.get(name)