Skip to content

Commit 6c5e798

Browse files
authored
Allow kicking even if the name contains spaces (JaylyDev#29)
For players whose names contain spaces
1 parent 64843f1 commit 6c5e798

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/player-extra/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function Player(player: mc.Player): PlayerExtra {
2929
return getGamemode(player);
3030
},
3131
kick(reason: string) {
32-
player.runCommand(`kick ${player.name} ${reason}`);
32+
player.runCommand(`kick "${player.name}" ${reason}`);
3333
},
3434
getScore(objectiveId: string) {
3535
return mc.world.scoreboard

0 commit comments

Comments
 (0)