This commit is contained in:
Draycia committed 2022-01-05 20:32:21 -08:00
1 parent f5c2e0559b
commit a92813a06e
6 files changed
+10 -15

No files matched your search

@@ -92,6 +92,11 @@ public final class BasicChatChannel implements ChatChannel {
return Collections.emptyList();
}
@Override
public @Nullable String permission() {
return null;
}
@Override
public ChannelPermissionResult speechPermitted(final CarbonPlayer carbonPlayer) {
return ChannelPermissionResult.allowed();
@@ -103,10 +103,7 @@ public class ContinueCommand extends CarbonCommand {
return;
}
if (!recipient.online()
|| (!sender.awareOf(recipient)
&& !sender.hasPermission("carbon.whisper.vanished"))
) {
if (!recipient.online() || !sender.awareOf(recipient) && !sender.hasPermission("carbon.whisper.vanished")) {
final var rawNameInput = CloudUtils.rawInputByMatchingName(handler.getRawInput(), recipient);
final var exception = new CarbonPlayerArgument.CarbonPlayerParseException(rawNameInput, handler, this.messageService);
@@ -103,10 +103,7 @@ public class ReplyCommand extends CarbonCommand {
return;
}
if (!recipient.online()
|| (!sender.awareOf(recipient)
&& !sender.hasPermission("carbon.whisper.vanished"))
) {
if (!recipient.online() || !sender.awareOf(recipient) && !sender.hasPermission("carbon.whisper.vanished")) {
final var rawNameInput = CloudUtils.rawInputByMatchingName(handler.getRawInput(), recipient);
final var exception = new CarbonPlayerArgument.CarbonPlayerParseException(rawNameInput, handler, this.messageService);
@@ -97,10 +97,7 @@ public class WhisperCommand extends CarbonCommand {
return;
}
if (!recipient.online()
|| (!sender.awareOf(recipient)
&& !sender.hasPermission("carbon.whisper.vanished"))
) {
if (!recipient.online() || !sender.awareOf(recipient) && !sender.hasPermission("carbon.whisper.vanished")) {
final var rawNameInput = CloudUtils.rawInputByMatchingName(handler.getRawInput(), recipient);
final var exception = new CarbonPlayerArgument.CarbonPlayerParseException(rawNameInput, handler, this.messageService);