mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-25 15:30:45 +02:00
Ensure that player data is removed even if a corresponding user doesn't exist
This commit is contained in:
@@ -287,7 +287,13 @@ public class WebEditorResponse {
|
||||
|
||||
User user = this.plugin.getStorage().loadUser(uuid, null).join();
|
||||
if (user == null) {
|
||||
return false;
|
||||
try {
|
||||
this.plugin.getStorage().deletePlayerData(uuid).get();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
Message.DELETE_ERROR.send(this.sender, uuid.toString());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (ArgumentPermissions.checkModifyPerms(this.plugin, this.sender, CommandPermission.APPLY_EDITS, user)) {
|
||||
|
Reference in New Issue
Block a user