add message chen saving guestlist

This commit is contained in:
Beu
2025-07-25 17:41:03 +02:00
parent fea4d8fd6e
commit 7c54565845

View File

@@ -23,7 +23,7 @@ class GuestlistManager implements CommandListener, CallbackListener, TimerListen
* Constants * Constants
*/ */
const PLUGIN_ID = 154; const PLUGIN_ID = 154;
const PLUGIN_VERSION = 2.3; const PLUGIN_VERSION = 2.4;
const PLUGIN_NAME = 'Guestlist Manager'; const PLUGIN_NAME = 'Guestlist Manager';
const PLUGIN_AUTHOR = 'Beu'; const PLUGIN_AUTHOR = 'Beu';
@@ -348,6 +348,8 @@ class GuestlistManager implements CommandListener, CallbackListener, TimerListen
} }
try { try {
$this->maniaControl->getChat()->sendSuccess("Saving guestlist...", $player);
$filepath = $this->maniaControl->getServer()->getDirectory()->getUserDataFolder() . DIRECTORY_SEPARATOR . "Config" . DIRECTORY_SEPARATOR . $guestlist; $filepath = $this->maniaControl->getServer()->getDirectory()->getUserDataFolder() . DIRECTORY_SEPARATOR . "Config" . DIRECTORY_SEPARATOR . $guestlist;
$directory = dirname($filepath); $directory = dirname($filepath);