mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 01:32:17 +00:00
Add web editor deletion cause
This commit is contained in:
2 files changed
+8
-2
No files matched your search
@@ -35,6 +35,12 @@ public enum DeletionCause {
|
||||
*/
|
||||
COMMAND,
|
||||
|
||||
/**
|
||||
* The deletion was caused by the web editor
|
||||
* @since 5.3
|
||||
*/
|
||||
WEB_EDITOR,
|
||||
|
||||
/**
|
||||
* The deletion was caused by an API call
|
||||
*/
|
||||
|
||||
@@ -328,7 +328,7 @@ public class WebEditorResponse {
|
||||
}
|
||||
|
||||
try {
|
||||
this.plugin.getStorage().deleteGroup(group, DeletionCause.COMMAND).get();
|
||||
this.plugin.getStorage().deleteGroup(group, DeletionCause.WEB_EDITOR).get();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
Message.DELETE_ERROR.send(this.sender, group.getFormattedDisplayName());
|
||||
@@ -358,7 +358,7 @@ public class WebEditorResponse {
|
||||
}
|
||||
|
||||
try {
|
||||
this.plugin.getStorage().deleteTrack(track, DeletionCause.COMMAND).get();
|
||||
this.plugin.getStorage().deleteTrack(track, DeletionCause.WEB_EDITOR).get();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
Message.DELETE_ERROR.send(this.sender, Component.text(track.getName()));
|
||||
|
||||
Reference in new issue
Block a user