+
Skip to content

Conversation

FjamZoo
Copy link

@FjamZoo FjamZoo commented Apr 30, 2025

Right now there's a problem where calling Ox.DeleteGroup doesn't remove the group from online players.

What happens is our foreign key in the DB deletes all the character groups automatically when a group is deleted. But in player.setGroup, we call RemoveCharacterGroup, which only returns true if it actually removes the group from the player. Since the DB already wiped the group, it always returns false which means all online players with the group being deleted will not have their groups updated.

this fixes it

Copy link
Member

@antond15 antond15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ESK0 ESK0 merged commit c02a85c into CommunityOx:main May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载