Send a message when an editor upload begins

This commit is contained in:
Luck 2017-12-16 23:29:50 +00:00
parent 904bb90385
commit ad5299d0cd
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
3 changed files with 4 additions and 8 deletions

View File

@ -67,6 +67,8 @@ public class HolderEditor<T extends PermissionHolder> extends SubCommand<T> {
return CommandResult.NO_PERMISSION;
}
Message.EDITOR_START.send(sender);
// form the payload data
JsonObject payload = new JsonObject();
payload.addProperty("who", WebEditorUtils.getHolderIdentifier(holder));

View File

@ -129,8 +129,9 @@ public enum Message {
APPLY_EDITS_DIFF_ADDED("&a+ &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_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),

View File

@ -54,13 +54,6 @@ public final class ImmutableNode implements Node {
*/
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
private final String permission;