mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Human pass over commands
This commit is contained in:
16 files changed
+68
-50
No files matched your search
@@ -15,9 +15,10 @@ import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
public class ClearChatCommand {
|
||||
|
||||
@NonNull
|
||||
private final CarbonChat carbonChat;
|
||||
|
||||
public ClearChatCommand(CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
|
||||
public ClearChatCommand(@NonNull CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
|
||||
this.carbonChat = carbonChat;
|
||||
|
||||
if (!commandSettings.isEnabled()) {
|
||||
@@ -33,7 +34,7 @@ public class ClearChatCommand {
|
||||
.register();
|
||||
}
|
||||
|
||||
private void execute(@NonNull CommandSender sender, Object[] args) {
|
||||
private void execute(@NonNull CommandSender sender, @NonNull Object @NonNull [] args) {
|
||||
String format = carbonChat.getModConfig().getString("clear-chat.message", "");
|
||||
Component component = carbonChat.getAdventureManager().processMessage(format, "br", "\n");
|
||||
|
||||
|
||||
Reference in new issue
Block a user