fix(transfer): remove quotes around player name in transfer command

The /transfer command doesn't accept quoted player names. Removing the
embedded double quotes fixes portal transfers in both lobby and hub-return
addons.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-18 22:23:20 +00:00
parent 389e053dc5
commit 2b0a0c4997
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ system.runInterval(() => {
cooldowns.set(playerId, system.currentTick);
player.sendMessage(`§6Transferring to ${portal.name}...`);
try {
player.runCommand(`transfer "${player.name}" ${portal.host} ${portal.port}`);
player.runCommand(`transfer ${player.name} ${portal.host} ${portal.port}`);
} catch (e) {
player.sendMessage(`§cTransfer failed: ${e.message}`);
}