mirror of
https://github.com/Lacustat/Freewood-OctoWoW-Codex.git
synced 2026-10-30 15:10:51 +00:00
0.1.139: Dev und Rechte scharf, Eigentuemer und Moderatoren eingetragen
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016onJCSHLwhs9udhC9ZLzk9
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
e17ea437dd
commit
ef7d631fe7
+13
-4
@@ -16,8 +16,17 @@ if not NS then
|
||||
end
|
||||
|
||||
NS.Owners = {
|
||||
"Yuto-ClassicBetaPvP2",
|
||||
"Aroki Steel",
|
||||
"Lujinja Steel",
|
||||
"Lujinja-ClassicBetaPvE",
|
||||
"Fwfreewood",
|
||||
"Freewood",
|
||||
"Fwaroki",
|
||||
}
|
||||
|
||||
-- Fest eingetragene Moderatoren (duerfen Namen aendern, Datensaetze markieren, Verbindungen und Ortspunkte weitergeben).
|
||||
-- Gilt zusaetzlich zur Liste, die ein Eigentuemer ueber das Modul Rechte veroeffentlicht. Eine Sperre (blocked) dort geht vor.
|
||||
NS.Moderators = {
|
||||
"Pinkytwinky",
|
||||
"Lacustat",
|
||||
"Dipps",
|
||||
"Arokisteel",
|
||||
"Windsteel",
|
||||
}
|
||||
|
||||
@@ -132,6 +132,15 @@ end
|
||||
-- Abfragen
|
||||
------------------------------------------------------------------------
|
||||
|
||||
local function ModeratorKeys()
|
||||
local set = {}
|
||||
for _, n in ipairs(NS.Moderators or {}) do
|
||||
local k = Trust.EntryKey(n)
|
||||
if k then set[k] = true end
|
||||
end
|
||||
return set
|
||||
end
|
||||
|
||||
function Trust.IsOwner(name)
|
||||
local k = Trust.Key(name)
|
||||
return k ~= nil and OwnerKeys()[k] == true
|
||||
@@ -148,6 +157,7 @@ function Trust.RoleOf(name)
|
||||
local entry = Data().list[k]
|
||||
if entry and entry.role == "blocked" then return "blocked" end
|
||||
if OwnerKeys()[k] then return "owner" end
|
||||
if ModeratorKeys()[k] then return "moderator" end
|
||||
return entry and entry.role or nil
|
||||
end
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
## Notes: Learns quests, creatures and drops while you play: who gives and takes a quest, rewards, objectives, drop chances.
|
||||
## Notes-deDE: Lernt beim Spielen Quests, Kreaturen und Beute: wer eine Quest vergibt und annimmt, Belohnungen, Ziele, Drop-Chancen.
|
||||
## Author: Lacustat
|
||||
## Version: 0.1.138
|
||||
## Version: 0.1.139
|
||||
## Dependencies: Freewood-OctoWoW-Core
|
||||
## OptionalDeps: Freewood-OctoWoW-CodexData, Freewood-OctoWoW-ForeverData
|
||||
|
||||
|
||||
Reference in New Issue
Block a user