<?php
/**
 * Rename Character
 * https://webenginecms.org/
 *
 * @version 1.0.0
 * @author Gabo Development <https://gabodevelop.com/>
 * @copyright (c) 2026 Gabriel Development, All Rights Reserved
 * @build w641ba01901cb0925ec50f543e59acbd
 */

try {
	if (!class_exists('Plugin\RenameCharacter\RenameCharacter')) {
		throw new Exception('Plugin disabled.');
	}
	$pageTitle = lang('myaccount_txt_29', true) ?: 'Rename Character';
	ob_start();
	$RenameCharacter = new Plugin\RenameCharacter\RenameCharacter();
	$RenameCharacter->loadModule('rename');
	$pluginContent = ob_get_clean();
	echo '<div class="nexora-usercp-page nexora-usercp-plugin-wrap">';
	echo '<header class="nexora-usercp-page-header"><h1 class="nexora-usercp-page-title">' . htmlspecialchars($pageTitle) . '</h1></header>';
	echo '<div class="nexora-usercp-panel nexora-usercp-plugin-panel"><div class="nexora-usercp-panel-body">' . $pluginContent . '</div></div>';
	echo '</div>';
} catch (Exception $ex) {
	message('error', $ex->getMessage());
}