mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-02-06 23:52:03 +01:00
Ensure that player data is removed even if a corresponding user doesn't exist
This commit is contained in:
parent
971bb67b51
commit
442c7d46f9
@ -287,7 +287,13 @@ public class WebEditorResponse {
|
|||||||
|
|
||||||
User user = this.plugin.getStorage().loadUser(uuid, null).join();
|
User user = this.plugin.getStorage().loadUser(uuid, null).join();
|
||||||
if (user == null) {
|
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)) {
|
if (ArgumentPermissions.checkModifyPerms(this.plugin, this.sender, CommandPermission.APPLY_EDITS, user)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user