mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Infer nullability, pre human pass
This commit is contained in:
62 files changed
+303
-249
No files matched your search
@@ -13,6 +13,7 @@ import net.kyori.adventure.text.Component;
|
||||
import net.milkbowl.vault.permission.Permission;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
|
||||
@@ -20,7 +21,7 @@ public class MuteCommand {
|
||||
|
||||
private final CarbonChat carbonChat;
|
||||
|
||||
public MuteCommand(CarbonChat carbonChat, CommandSettings commandSettings) {
|
||||
public MuteCommand(CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
|
||||
this.carbonChat = carbonChat;
|
||||
|
||||
if (!commandSettings.isEnabled()) {
|
||||
@@ -40,7 +41,7 @@ public class MuteCommand {
|
||||
.register();
|
||||
}
|
||||
|
||||
private void execute(CommandSender sender, Object[] args) {
|
||||
private void execute(@NonNull CommandSender sender, Object[] args) {
|
||||
ChatUser user = (ChatUser) args[0];
|
||||
Audience audience = carbonChat.getAdventureManager().getAudiences().audience(sender);
|
||||
|
||||
|
||||
Reference in new issue
Block a user