#How to kick people from realm with a custom message?
1 messages · Page 1 of 1 (latest)
/kick <playername> <reason>
What I mean is like
The kick command can't use target selectors
So like how do I kick people if I can't use target selectors?
Wdym???
Use playername
Example
HowToPlay
/Kick HowToPlay §bTesting
Well, obviously
But like
You can't use target selectors for /kick for obvious reasons. /kick @a wouldn't work. So I'm wondering how I'd kick people using the script API if I can't use target selectors?
Since player.runCommandAsync('/kick @s') wouldn't work how do I do it?
uh
(`kick ${player.name}`)
player.runCommandAsync('kick ' + JSON.stringify(player.name))
player.runCommandAsync(`kick “${player.name}”`)
Jayly player.name isn’t a Json object
ik, i stringify it just to escape unicode characters even tho minecraft usually wont allow this to happen