|
|
@ -15,7 +15,7 @@
|
|
|
|
save_state="y"
|
|
|
|
save_state="y"
|
|
|
|
date_written="2015-10-25 12:00:38"
|
|
|
|
date_written="2015-10-25 12:00:38"
|
|
|
|
requires="4.00"
|
|
|
|
requires="4.00"
|
|
|
|
version="1.0"
|
|
|
|
version="1.6"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<description trim="y">
|
|
|
|
<description trim="y">
|
|
|
|
<![CDATA[
|
|
|
|
<![CDATA[
|
|
|
@ -142,6 +142,15 @@ EnableTrigger("End_Area", true)</send>
|
|
|
|
Send("group")
|
|
|
|
Send("group")
|
|
|
|
Send("echo ")</send>
|
|
|
|
Send("echo ")</send>
|
|
|
|
</alias>
|
|
|
|
</alias>
|
|
|
|
|
|
|
|
<alias
|
|
|
|
|
|
|
|
match="^grupdate$"
|
|
|
|
|
|
|
|
enabled="y"
|
|
|
|
|
|
|
|
group="Epic_Not_Here"
|
|
|
|
|
|
|
|
regexp="y"
|
|
|
|
|
|
|
|
script="UpdatePlugin"
|
|
|
|
|
|
|
|
sequence="100"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</alias>
|
|
|
|
<alias
|
|
|
|
<alias
|
|
|
|
match="^grarea$"
|
|
|
|
match="^grarea$"
|
|
|
|
enabled="y"
|
|
|
|
enabled="y"
|
|
|
@ -212,6 +221,35 @@ end
|
|
|
|
function OnPluginInstall()
|
|
|
|
function OnPluginInstall()
|
|
|
|
SetCounterDebug = 0
|
|
|
|
SetCounterDebug = 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function UpdatePlugin()
|
|
|
|
|
|
|
|
async_ok, async = pcall (require, "async")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local raw_page = "https://raw.githubusercontent.com/Arcidayne/Aardwolf-Scripts/master/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml"
|
|
|
|
|
|
|
|
local plugin_file = GetPluginInfo(GetPluginID(), 20) .. GetPluginInfo(GetPluginID(), 1) .. ".xml"
|
|
|
|
|
|
|
|
local plugin_version = GetPluginInfo(GetPluginID(), 19)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if async_ok then
|
|
|
|
|
|
|
|
raw_return = async.request(raw_page, "HTTPS")
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
retval, page, status, headers, full_status = raw_return:join()
|
|
|
|
|
|
|
|
raw_return = nil
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if status == 200 then
|
|
|
|
|
|
|
|
raw_version = string.match(page, '%s+version="([0-9%.]+)"')
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if tonumber(raw_version) == tonumber(plugin_version) then
|
|
|
|
|
|
|
|
ColourNote("white", "blue", "You currently have the latest version!")
|
|
|
|
|
|
|
|
elseif tonumber(raw_version) > tonumber(plugin_version) then
|
|
|
|
|
|
|
|
local file = io.open(plugin_file, "w")
|
|
|
|
|
|
|
|
file:write(page)
|
|
|
|
|
|
|
|
file:close()
|
|
|
|
|
|
|
|
LoadPlugin(plugin_file)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|