mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
2.0.7
This commit is contained in:
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();
|
||||
|
||||
+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);
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# Project Properties
|
||||
projectVersion=2.0.6
|
||||
projectVersion=2.0.7
|
||||
|
||||
# Gradle Properties
|
||||
org.gradle.configureondemand=true
|
||||
|
||||
Reference in new issue
Block a user