mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-31 18:07:56 +01:00
Remove ICommandSender#sendMessage overloads that are no-longer required
This commit is contained in:
parent
a25e1a2449
commit
9d2ec71b39
@ -20,30 +20,9 @@ package com.discordsrv.common.command.game.sender;
|
|||||||
|
|
||||||
import com.discordsrv.common.command.game.executor.CommandExecutor;
|
import com.discordsrv.common.command.game.executor.CommandExecutor;
|
||||||
import net.kyori.adventure.audience.ForwardingAudience;
|
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 {
|
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);
|
boolean hasPermission(String permission);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user