Remove: util
This commit is contained in:
parent
b0301130dc
commit
e16e72956f
10
fac/init.lua
10
fac/init.lua
@ -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:
|
||||
--
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user