ChanceSD/PvPManager-Issues

No player disconnection after disconnection in combat

Closed this issue · 1 comments

Describe the bug

I'm not sure if it's a bug, but when a player enters combat and logs out, their character isn't immediately disconnected from the server. This means that the character remains vulnerable and can be attacked or even killed by other players. This situation has caused a significant issue on our server, particularly regarding the system for storing items after death, such as AngelChest. As a result of this problem, several players have been able to duplicate items, including those that are typically only available for purchase on our website. This exploitation of the game mechanic has severely harmed the integrity of our economy system and the players' experience.

To Reproduce
Steps to reproduce the behavior:

When you engage in combat with another player and immediately log out, despite you being offline, your character remains in the game, vulnerable to being killed by other players.

Expected behavior

The player was automatically disconnected once.

Plugin and Server version

Server: 1.20.4 Plugin: 3.30.0_1

Screenshots/VIDEO

https://streamable.com/3ieqdn

Additional context

I would just like to say that I am not blaming you for what happened, this was our responsibility, but I hope that if it is indeed a bug, it will be fixed so that other people do not suffer harm.

For anyone seeing this, this is caused by an exception in AngelChest. Disable NPC spawning if using AngelChest.