mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 02:35:38 +08:00
Remove additional data on player deletion
Merge pull request #1465 from eternalcomet/development
This commit is contained in:
commit
9033c966d8
@ -128,6 +128,8 @@ public final class DatabaseHelper {
|
|||||||
player.getSession().close();
|
player.getSession().close();
|
||||||
|
|
||||||
// Delete data from collections
|
// Delete data from collections
|
||||||
|
DatabaseManager.getGameDatabase().getCollection("activities").deleteMany(eq("uid",player.getUid()));
|
||||||
|
DatabaseManager.getGameDatabase().getCollection("homes").deleteMany(eq("ownerUid",player.getUid()));
|
||||||
DatabaseManager.getGameDatabase().getCollection("mail").deleteMany(eq("ownerUid", player.getUid()));
|
DatabaseManager.getGameDatabase().getCollection("mail").deleteMany(eq("ownerUid", player.getUid()));
|
||||||
DatabaseManager.getGameDatabase().getCollection("avatars").deleteMany(eq("ownerId", player.getUid()));
|
DatabaseManager.getGameDatabase().getCollection("avatars").deleteMany(eq("ownerId", player.getUid()));
|
||||||
DatabaseManager.getGameDatabase().getCollection("gachas").deleteMany(eq("ownerId", player.getUid()));
|
DatabaseManager.getGameDatabase().getCollection("gachas").deleteMany(eq("ownerId", player.getUid()));
|
||||||
|
Loading…
Reference in New Issue
Block a user