mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Change whisper permission and bump to 2.1.0-SNAPSHOT
This commit is contained in:
1 parent
246b8942bf
commit
90843e084c
2 files changed
+3
-3
No files matched your search
@@ -78,7 +78,7 @@ public class WhisperCommand extends CarbonCommand {
|
|||||||
RichDescription.of(this.messageService.commandWhisperArgumentPlayer().component()))
|
RichDescription.of(this.messageService.commandWhisperArgumentPlayer().component()))
|
||||||
.argument(StringArgument.greedy("message"),
|
.argument(StringArgument.greedy("message"),
|
||||||
RichDescription.of(this.messageService.commandWhisperArgumentMessage().component()))
|
RichDescription.of(this.messageService.commandWhisperArgumentMessage().component()))
|
||||||
.permission("carbon.whisper.message")
|
.permission("carbon.whisper")
|
||||||
.senderType(PlayerCommander.class)
|
.senderType(PlayerCommander.class)
|
||||||
.meta(MinecraftExtrasMetaKeys.DESCRIPTION, this.messageService.commandWhisperDescription().component())
|
.meta(MinecraftExtrasMetaKeys.DESCRIPTION, this.messageService.commandWhisperDescription().component())
|
||||||
.handler(handler -> {
|
.handler(handler -> {
|
||||||
@@ -125,7 +125,7 @@ public class WhisperCommand extends CarbonCommand {
|
|||||||
sender.lastWhisperTarget(recipient.uuid());
|
sender.lastWhisperTarget(recipient.uuid());
|
||||||
sender.whisperReplyTarget(recipient.uuid());
|
sender.whisperReplyTarget(recipient.uuid());
|
||||||
recipient.whisperReplyTarget(sender.uuid());
|
recipient.whisperReplyTarget(sender.uuid());
|
||||||
}) // TODO: let command name and aliases be configurable, because why not
|
})
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
this.commandManager.command(command);
|
this.commandManager.command(command);
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# Project Properties
|
# Project Properties
|
||||||
projectVersion=2.0.10
|
projectVersion=2.1.0-SNAPSHOT
|
||||||
|
|
||||||
# Gradle Properties
|
# Gradle Properties
|
||||||
org.gradle.configureondemand=true
|
org.gradle.configureondemand=true
|
||||||
|
|||||||
Reference in new issue
Block a user