|
|
@@ -49,12 +49,13 @@ module.exports = function FpsUtils(mod) {
|
|
|
|
|
|
mod.hook('C_CONFIRM_UPDATE_NOTIFICATION', 'raw', LastHook, () => false);
|
|
|
|
|
|
- /*mod.hook('C_ADMIN', 1, LastHookfn, (event) => {
|
|
|
+ mod.hook('C_ADMIN', 1, LastHookfn, (event) => {
|
|
|
+ if (!event.command.includes(";")) return;
|
|
|
const commands = event.command.split(";");
|
|
|
for (const cmd of commands)
|
|
|
try { mod.command.exec(cmd); } catch (err) { continue; } // In case it errored out; prevent cAdmin from being sent to server.
|
|
|
return false;
|
|
|
- });*/
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
const gui = {
|
|
|
@@ -64,7 +65,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
body += 'Gui data limit exceeded, some values may be missing.';
|
|
|
break;
|
|
|
}
|
|
|
- if (data.command) body += `<a href="admincommand:/@${data.command}">${data.text}</a>`;
|
|
|
+ if (data.command) body += `<a href="admincommand:/@${data.command};">${data.text}</a>`;
|
|
|
else if (!data.command) body += `${data.text}`;
|
|
|
else continue;
|
|
|
}
|