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:
sysadminandClaude Opus 4.6 committed 2026-03-18 22:23:20 +00:00
1 parent 389e053dc5
commit 2b0a0c4997
2 files changed
+3 -3

No files matched your search

@@ -21,9 +21,9 @@ function doTransfer(player) {
world.sendMessage(`§a${player.name} is returning to the Hub...`);
try {
player.runCommand(`transfer "${player.name}" ${LOBBY_HOST} ${LOBBY_PORT}`);
player.runCommand(`transfer ${player.name} ${LOBBY_HOST} ${LOBBY_PORT}`);
} catch (e) {
world.sendMessage(`§cTransfer failed: ${e.message}`);
player.sendMessage(`§cTransfer failed: ${e.message}`);
}
}