mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Human pass over commands
This commit is contained in:
16 files changed
+68
-50
No files matched your search
@@ -19,9 +19,10 @@ import java.util.LinkedHashMap;
|
||||
|
||||
public class MuteCommand {
|
||||
|
||||
@NonNull
|
||||
private final CarbonChat carbonChat;
|
||||
|
||||
public MuteCommand(CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
|
||||
public MuteCommand(@NonNull CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
|
||||
this.carbonChat = carbonChat;
|
||||
|
||||
if (!commandSettings.isEnabled()) {
|
||||
@@ -41,7 +42,7 @@ public class MuteCommand {
|
||||
.register();
|
||||
}
|
||||
|
||||
private void execute(@NonNull CommandSender sender, Object[] args) {
|
||||
private void execute(@NonNull CommandSender sender, @NonNull Object @NonNull [] args) {
|
||||
ChatUser user = (ChatUser) args[0];
|
||||
Audience audience = carbonChat.getAdventureManager().getAudiences().audience(sender);
|
||||
|
||||
|
||||
Reference in new issue
Block a user