mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-30 17:49:48 +02:00
Send messaging service ping for creategroup command (#2956)
This commit is contained in:
@@ -32,6 +32,7 @@ import me.lucko.luckperms.common.command.access.CommandPermission;
|
|||||||
import me.lucko.luckperms.common.command.spec.CommandSpec;
|
import me.lucko.luckperms.common.command.spec.CommandSpec;
|
||||||
import me.lucko.luckperms.common.command.utils.ArgumentException;
|
import me.lucko.luckperms.common.command.utils.ArgumentException;
|
||||||
import me.lucko.luckperms.common.command.utils.ArgumentList;
|
import me.lucko.luckperms.common.command.utils.ArgumentList;
|
||||||
|
import me.lucko.luckperms.common.command.utils.StorageAssistant;
|
||||||
import me.lucko.luckperms.common.locale.Message;
|
import me.lucko.luckperms.common.locale.Message;
|
||||||
import me.lucko.luckperms.common.model.Group;
|
import me.lucko.luckperms.common.model.Group;
|
||||||
import me.lucko.luckperms.common.node.types.DisplayName;
|
import me.lucko.luckperms.common.node.types.DisplayName;
|
||||||
@@ -94,7 +95,7 @@ public class CreateGroup extends SingleCommand {
|
|||||||
group.setNode(DataType.NORMAL, DisplayName.builder(displayName).build(), false);
|
group.setNode(DataType.NORMAL, DisplayName.builder(displayName).build(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
plugin.getStorage().saveGroup(group);
|
StorageAssistant.save(group, sender, plugin);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
plugin.getLogger().warn("Error whilst creating group", e);
|
plugin.getLogger().warn("Error whilst creating group", e);
|
||||||
Message.CREATE_ERROR.send(sender, Component.text(groupName));
|
Message.CREATE_ERROR.send(sender, Component.text(groupName));
|
||||||
|
Reference in New Issue
Block a user