Support for ULib plugin changes

This commit is contained in:
Nayruden 2016-01-01 11:01:29 -05:00
parent 8d65e27634
commit 946199ed7f
3 changed files with 14 additions and 13 deletions

View File

@ -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

View File

@ -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" )

View File

@ -1 +1 @@
1451661035
1451664089