]> jfr.im git - irc/unrealircd/unrealircd-webpanel-plugins.git/blobdiff - example_plugin/example_plugin.php
Update README.md
[irc/unrealircd/unrealircd-webpanel-plugins.git] / example_plugin / example_plugin.php
index 80335b972560b0015bf6d8bb50e2a7a8c6ac8370..08aa4fae8e7d9e1931dbf1139edfbdd739156cdb 100644 (file)
@@ -21,8 +21,8 @@
   @maxver *
   @license GPLv3
   @icon https://github.com/unrealircd/unrealircd-webpanel-plugins/blob/main/example_plugin/screenshots/example_icon.png?raw=true
-  @screenshot screenshots/example_plugin.png
-  @screenshot screenshots/example_plugin2.png
+  @screenshot https://github.com/unrealircd/unrealircd-webpanel-plugins/blob/main/example_plugin/screenshots/example_plugin2.jpg?raw=true
+  @screenshot https://github.com/unrealircd/unrealircd-webpanel-plugins/blob/main/example_plugin/screenshots/example_plugin.jpg?raw=true
 */
 
 class example_plugin
@@ -30,7 +30,7 @@ class example_plugin
        /* You must specify these here for internal use
         * All of these are mandatory or your plugin will not work.
        */
-       public $name = "Example plugin"; // Name of your plugin
+       public $name = "example_plugin"; // Name of your plugin
        public $author = "Valware"; // Name or handle of your lovely self
        public $version = "1.0"; // Version of this plugin
        public $description = "An example plugin to show how to make stuff"; // Description of your beautiful plugin
@@ -63,7 +63,7 @@ class example_plugin
        {
                $page_name = "Example";
                $page_link = "plugins/example_plugin/example.php";
-               $pages[$page_name] = $page_link;
+               $pages[$page_name] = ["script" => $page_link, "no_irc_server_required" => true];
        }
 }