Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions gamemode/core/hooks/cl_hooks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -537,3 +537,20 @@ function GM:ScreenResolutionChanged(oldW, oldH)
nut.config.get("genericFont")
)
end

function GM:NutScriptLoaded()
for _, PLUGIN in pairs(nut.plugin.list) do
local author64ID = tonumber(PLUGIN.author)
local authorSteamID = string.match(PLUGIN.author, "STEAM_", 1)

if (author64ID or authorSteamID) then
-- Store the Steam ID
PLUGIN.authorID = author64ID and util.SteamIDFrom64(PLUGIN.author) or PLUGIN.author

steamworks.RequestPlayerInfo(authorSteamID and util.SteamIDTo64(PLUGIN.author) or PLUGIN.author, function(steamName)
-- Update the author name
PLUGIN.author = steamName
end)
end
end
end
2 changes: 1 addition & 1 deletion plugins/persistence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local PLUGIN = PLUGIN

PLUGIN.name = "Persistence"
PLUGIN.desc = "Saves persisted entities through restarts."
PLUGIN.author = "Zoephix"
PLUGIN.author = "STEAM_0:0:50197118"

-- Storage for persisted map entities
PLUGIN.entities = PLUGIN.entities or {}
Expand Down