So I have a Minecraft Bedrock realm and players tend to go AFK for hours upon hours on end. I made a command block system that kicked AFK players after 5 minutes but it doesn't work now because the command block that has the /kick command says that it requires a players name to be able to kick.
To explain better why it doesn't work (command geek stuff):
Every time a players is not moving in the x and z directions, a score of one in a scoreboard named "time" gets added every 20 ticks (1 second). If the player is moving in the x or z coordinates, it resets to 0. When a command block detects a player with a scoreboard "time" score of 300 (5 irl minutes), it should kick them (repeating and always active command: /execute @a[scores={time=300}] ~ ~ ~ kick Being AFK for too long").
Please sign in to leave a comment.
3 Comments