mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Infer nullability, pre human pass
This commit is contained in:
62 files changed
+303
-249
No files matched your search
@@ -12,6 +12,7 @@ import net.kyori.adventure.text.Component;
|
||||
import net.milkbowl.vault.permission.Permission;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
|
||||
@@ -19,7 +20,7 @@ public class IgnoreCommand {
|
||||
|
||||
private final CarbonChat carbonChat;
|
||||
|
||||
public IgnoreCommand(CarbonChat carbonChat, CommandSettings commandSettings) {
|
||||
public IgnoreCommand(CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
|
||||
this.carbonChat = carbonChat;
|
||||
|
||||
if (!commandSettings.isEnabled()) {
|
||||
@@ -39,7 +40,7 @@ public class IgnoreCommand {
|
||||
.register();
|
||||
}
|
||||
|
||||
private void execute(Player player, Object[] args) {
|
||||
private void execute(@NonNull Player player, Object[] args) {
|
||||
ChatUser targetUser = (ChatUser) args[0];
|
||||
ChatUser user = carbonChat.getUserService().wrap(player);
|
||||
|
||||
|
||||
Reference in new issue
Block a user