forked from TeamUlysses/ulx
Support for ULib plugin changes
This commit is contained in:
parent
8d65e27634
commit
946199ed7f
@ -65,8 +65,8 @@ local function advertiseNewVersions( ply )
|
||||
if ply:IsAdmin() and not ply.ULX_UpdatesAdvertised then
|
||||
local updatesFor = {}
|
||||
for name, plugin in pairs (ULib.plugins) do
|
||||
myBuild = tonumber( plugin.build )
|
||||
curBuild = tonumber( plugin.buildOnline )
|
||||
myBuild = tonumber( plugin.BuildNumLocal )
|
||||
curBuild = tonumber( plugin.BuildNumRemote )
|
||||
if myBuild and curBuild and myBuild < curBuild then
|
||||
table.insert( updatesFor, name )
|
||||
end
|
||||
|
@ -1,14 +1,15 @@
|
||||
local ulxDat = {
|
||||
version = string.format( "%.2f", ulx.version ),
|
||||
isRelease = ulx.release,
|
||||
author = "Team Ulysses",
|
||||
url = "http://ulyssesmod.net",
|
||||
workshopid = 557962280,
|
||||
build = tonumber(ULib.fileRead( "ulx.build" )),
|
||||
buildURL = ulx.release and "https://teamulysses.github.io/ulx/ulx.build" or "https://raw.githubusercontent.com/TeamUlysses/ulx/master/ulx.build",
|
||||
--buildCallback = nil
|
||||
local ulxBuildNumURL = ulx.release and "https://teamulysses.github.io/ulx/ulx.build" or "https://raw.githubusercontent.com/TeamUlysses/ulx/master/ulx.build"
|
||||
ULib.registerPlugin{
|
||||
Name = "ULX",
|
||||
Version = string.format( "%.2f", ulx.version ),
|
||||
IsRelease = ulx.release,
|
||||
Author = "Team Ulysses",
|
||||
URL = "http://ulyssesmod.net",
|
||||
WorkshopID = 557962280,
|
||||
BuildNumLocal = tonumber(ULib.fileRead( "ulx.build" )),
|
||||
BuildNumRemoteURL = ulxBuildNumURL,
|
||||
--BuildNumRemoteReceivedCallback = nil
|
||||
}
|
||||
ULib.registerPlugin( "ULX", ulxDat )
|
||||
|
||||
function ulx.getVersion() -- This function will be removed in the future
|
||||
return ULib.pluginVersionStr( "ULX" )
|
||||
|
Loading…
Reference in New Issue
Block a user