Human pass over commands

This commit is contained in:
Mariell Hoversholm committed 2020-09-09 22:16:57 +02:00
1 parent a9f068cc94
commit 830722a2b8
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");