- check_circle Functions
- 9,216 views, 7 today
- 1,121 downloads, 1 today
67
This pack prevents combat logging by killing the player that logged out when they rejoin. If you hit someone or get hit by someone, you are "in combat" and can only leave the game after 30 seconds. The timer resets back to 30 seconds every time you get hit or hit someone.
If you want to edit the amount of time you need to wait before logging off, use /scoreboard players set #cooldown damage_timer <#ofTicks/>
A warning is send to new players to let them know, and the combat timer is visible above your hotbar.
Requested by User3996952G.
If you want to edit the amount of time you need to wait before logging off, use /scoreboard players set #cooldown damage_timer <#ofTicks/>
A warning is send to new players to let them know, and the combat timer is visible above your hotbar.
Requested by User3996952G.
Credit | Created By GrubLubSnub |
Compatibility | Minecraft 1.13 |
to | Minecraft 1.19 |
Tags |
1 Update Logs
Update #1 : by GrubLubSnub 11/17/2022 11:10:44 amNov 17th, 2022
- Optimized datapack.
- Cooldown display is now red and changes to green when finished
- You can now change the cooldown with /scoreboard players set #cooldown damage_timer <#ofTicks>
- Default cooldown is now 30 seconds.
tools/tracking
5488667
119
combat-logging-prevention
Create an account or sign in to comment.
Also, there is an easier and more straight-forward way to detect when a player log back : there is the custom score leave_game that tracks the number of times a player left the world.
I just killed the player because if you do not know where they logged out they will be able to escape or wait a few days irl to get away for free.