mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Add missing docs for ChannelMessage
This commit is contained in:
1 parent
545d09c574
commit
cbcd145360
2 files changed
+12
-5
No files matched your search
@@ -98,10 +98,10 @@ public class WhisperCommand extends CarbonCommand {
|
||||
final String message = handler.get("message");
|
||||
final CarbonPlayer recipient = handler.get("player");
|
||||
|
||||
// if (sender.equals(recipient)) {
|
||||
// this.carbonMessages.whisperSelfError(sender, CarbonPlayer.renderName(sender));
|
||||
// return;
|
||||
// }
|
||||
if (sender.equals(recipient)) {
|
||||
this.carbonMessages.whisperSelfError(sender, CarbonPlayer.renderName(sender));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!recipient.online() || !sender.awareOf(recipient) && !sender.hasPermission("carbon.whisper.vanished")) {
|
||||
final var rawNameInput = CloudUtils.rawInputByMatchingName(handler.getRawInput(), recipient);
|
||||
|
||||
Reference in new issue
Block a user