mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Send a message when an editor upload begins
This commit is contained in:
parent
904bb90385
commit
ad5299d0cd
@ -67,6 +67,8 @@ public class HolderEditor<T extends PermissionHolder> extends SubCommand<T> {
|
|||||||
return CommandResult.NO_PERMISSION;
|
return CommandResult.NO_PERMISSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Message.EDITOR_START.send(sender);
|
||||||
|
|
||||||
// form the payload data
|
// form the payload data
|
||||||
JsonObject payload = new JsonObject();
|
JsonObject payload = new JsonObject();
|
||||||
payload.addProperty("who", WebEditorUtils.getHolderIdentifier(holder));
|
payload.addProperty("who", WebEditorUtils.getHolderIdentifier(holder));
|
||||||
|
@ -129,8 +129,9 @@ public enum Message {
|
|||||||
APPLY_EDITS_DIFF_ADDED("&a+ &f{}", false),
|
APPLY_EDITS_DIFF_ADDED("&a+ &f{}", false),
|
||||||
APPLY_EDITS_DIFF_REMOVED("&c- &f{}", false),
|
APPLY_EDITS_DIFF_REMOVED("&c- &f{}", false),
|
||||||
|
|
||||||
|
EDITOR_START("&7Preparing a new editor sesssion. Please wait...", true),
|
||||||
EDITOR_UPLOAD_FAILURE("&cUnable to upload permission data to the editor.", true),
|
EDITOR_UPLOAD_FAILURE("&cUnable to upload permission data to the editor.", true),
|
||||||
EDITOR_URL("&aEditor URL:", true),
|
EDITOR_URL("&aClick the link below to open the editor:", true),
|
||||||
|
|
||||||
CHECK_RESULT("&aPermission check result on user &b{}&a for permission &b{}&a: &f{}", true),
|
CHECK_RESULT("&aPermission check result on user &b{}&a for permission &b{}&a: &f{}", true),
|
||||||
|
|
||||||
|
@ -54,13 +54,6 @@ public final class ImmutableNode implements Node {
|
|||||||
*/
|
*/
|
||||||
private static final int NODE_SEPARATOR_CHAR = Character.getNumericValue('.');
|
private static final int NODE_SEPARATOR_CHAR = Character.getNumericValue('.');
|
||||||
|
|
||||||
/*
|
|
||||||
* NODE STATE
|
|
||||||
*
|
|
||||||
* This are the actual node attributes, and are
|
|
||||||
* really just what this class wraps.
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private final String permission;
|
private final String permission;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user