diff --git a/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml b/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml
index c94a8df..79b8ad9 100644
--- a/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml
+++ b/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml
@@ -147,17 +147,9 @@ Send("echo ")
enabled="y"
group="Epic_Not_Here"
regexp="y"
- send_to="12"
+ script="update_plugin"
sequence="100"
>
- if not IsPluginInstalled("dff6da0f0c8bd7605fe6a5f4") then
- get_updater()
- else
- local pid = GetPluginID()
- local pfile = GetPluginInfo(pid, 6)
- local pversion = GetPluginInfo(pid, 19)
- CallPlugin("dff6da0f0c8bd7605fe6a5f4", "update_plugin", pid, pfile, pversion, "https://raw.githubusercontent.com/Arcidayne/Aardwolf-Scripts/master/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml")
- end
pversion then
+ ColourNote("white", "blue", "Updating from version " .. pversion .. " to " .. raw_version .. ". Do not touch anything.")
+ local file = io.open(pfile, "w")
+ file:write(page)
+ file:close()
+ end
+
+ raw_version = nil
+ if "" == GetAlphaOption("script_prefix") then
+ SetAlphaOption("script_prefix", "\\\\\\")
+ end
+
+ Execute(GetAlphaOption("script_prefix").."DoAfterSpecial(1, \"ReloadPlugin('"..GetPluginID().."')\", sendto.script)")
end
]]>