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

@@ -113,8 +113,7 @@ public interface ChatChannel extends Keyed, ChatComponentRenderer {
List<String> commandAliases();
/**
* The base permission players must have in order to use the channel.
*
* The base permission players must have in order to use the channel.<br>
* Null return means players do not need any permission.
*
* @return the permission required to use the channel, or null
@@ -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);
+1 -1
View File
@@ -1,5 +1,5 @@
# Project Properties
projectVersion=2.0.6
projectVersion=2.0.7
# Gradle Properties
org.gradle.configureondemand=true