mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 06:12:18 +00:00
Ensure that player data is removed even if a corresponding user doesn't exist
This commit is contained in:
1 file changed
+7
-1
@@ -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