From 2a0ee2316af2ecadb3aaf6f98a202bdc982ee1a0 Mon Sep 17 00:00:00 2001 From: beu Date: Wed, 16 Feb 2022 00:20:20 +0100 Subject: [PATCH] update plugins to publish it --- .gitignore | 2 +- Beu/MoreModesTools.php | 2 +- ...GameModeDevTools.php => ReloadDevTool.php} | 82 +++++++++++-------- 3 files changed, 52 insertions(+), 34 deletions(-) rename Beu/{GameModeDevTools.php => ReloadDevTool.php} (52%) diff --git a/.gitignore b/.gitignore index 7b80916..74241ef 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ !MatchManagerSuite/* !Beu !Beu/ChatAdminColorer.php -!Beu/GameModeDevTools.php +!Beu/ReloadDevTool.php !Beu/GuestlistManager.php !Beu/MoreModesTools.php !Beu/SimpleChatColorer.php diff --git a/Beu/MoreModesTools.php b/Beu/MoreModesTools.php index e4bb835..8f17626 100644 --- a/Beu/MoreModesTools.php +++ b/Beu/MoreModesTools.php @@ -68,7 +68,7 @@ class MoreModesTools implements CommandListener, Plugin { * @see \ManiaControl\Plugins\Plugin::getDescription() */ public static function getDescription() { - return 'Tool to manage the Guestlist'; + return 'Simple tool to send XmlRpc Callbacks'; } /** diff --git a/Beu/GameModeDevTools.php b/Beu/ReloadDevTool.php similarity index 52% rename from Beu/GameModeDevTools.php rename to Beu/ReloadDevTool.php index 5651906..1c24390 100644 --- a/Beu/GameModeDevTools.php +++ b/Beu/ReloadDevTool.php @@ -15,22 +15,24 @@ use ManiaControl\Manialinks\ManialinkPageAnswerListener; use \Exception; /** - * ManiaControl Profanity filter + * ReloadDevTool * * @author Beu * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 */ -class GameModeDevTools implements ManialinkPageAnswerListener, CallbackListener, Plugin { +class ReloadDevTool implements ManialinkPageAnswerListener, CallbackListener, Plugin { /* * Constants */ const PLUGIN_ID = 165; const PLUGIN_VERSION = 1.0; - const PLUGIN_NAME = 'GameModeDevTools'; + const PLUGIN_NAME = 'ReloadDevTool'; const PLUGIN_AUTHOR = 'Beu'; + const SETTING_RELOAD_GAMEMODE = 'Reload Gamemode'; + const SETTING_GAMEMODE_TO_LOAD = 'Gamemode to load'; + const SETTING_RESTART_MANIACONTROL = 'Restart Maniacontrol'; - const GAMEMODE_TO_LOAD = 'Gamemode to load'; /* * Private properties */ @@ -38,7 +40,7 @@ class GameModeDevTools implements ManialinkPageAnswerListener, CallbackListener, private $maniaControl = null; private $manialink = <<<'EOD' - +