Remove ICommandSender#sendMessage overloads that are no-longer required

This commit is contained in:
Vankka 2023-05-19 18:33:33 +03:00
parent a25e1a2449
commit 9d2ec71b39
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -20,30 +20,9 @@ package com.discordsrv.common.command.game.sender;
import com.discordsrv.common.command.game.executor.CommandExecutor;
import net.kyori.adventure.audience.ForwardingAudience;
import net.kyori.adventure.audience.MessageType;
import net.kyori.adventure.identity.Identity;
import net.kyori.adventure.text.Component;
import org.jetbrains.annotations.NotNull;
public interface ICommandSender extends ForwardingAudience.Single, CommandExecutor {
/**
* Sends a message to this {@link ICommandSender} with {@link Identity#nil()}.
* @param message the message to send
*/
default void sendMessage(@NotNull Component message) {
sendMessage(Identity.nil(), message, MessageType.CHAT);
}
/**
* Sends a message to this {@link ICommandSender} with {@link Identity#nil()}.
* @param message the message to send
* @param messageType the {@link MessageType}
*/
default void sendMessage(@NotNull Component message, @NotNull MessageType messageType) {
sendMessage(Identity.nil(), message, messageType);
}
boolean hasPermission(String permission);
}