mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Make plugin connection much more robust, with better errors
This commit is contained in:
parent
c2f7e268ff
commit
52eea667a7
7 changed files with 170 additions and 86 deletions
|
|
@ -11,6 +11,11 @@ local Version = require(script.Parent.Version)
|
|||
are, show them a reminder to make sure they check their server version.
|
||||
]]
|
||||
local function checkUpgrade()
|
||||
-- When developing Rojo, there's no use in doing version checks
|
||||
if Config.dev then
|
||||
return
|
||||
end
|
||||
|
||||
local lastVersion = plugin:GetSetting("LastRojoVersion")
|
||||
|
||||
if lastVersion then
|
||||
|
|
@ -30,10 +35,7 @@ local function checkUpgrade()
|
|||
end
|
||||
end
|
||||
|
||||
-- When developing Rojo, there's no use in storing that version number.
|
||||
if not Config.dev then
|
||||
plugin:SetSetting("LastRojoVersion", Config.version)
|
||||
end
|
||||
plugin:SetSetting("LastRojoVersion", Config.version)
|
||||
end
|
||||
|
||||
local function main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue