//@author Polaris //@version 1.0 //@description Notify when a script module changes state var notice; script.handle("onLoad", function () { notice = polaris.registerModule("Hello Notice", "Shows a notification when enabled"); notice.handle("onEnable", function () { polaris.displayInfoNotification("Hello Notice", "Ready to use"); }); notice.handle("onDisable", function () { polaris.displayChat("Hello Notice disabled"); }); }); script.handle("onUnload", function () { if (notice) notice.unregister(); });