mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
2.0.7
This commit is contained in:
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();
|
||||
|
||||
+1
-4
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user