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
@@ -12,6 +12,7 @@ import net.draycia.carbon.util.CarbonUtils;
|
||||
import net.draycia.carbon.util.CommandUtils;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
|
||||
@@ -19,7 +20,7 @@ public class ToggleCommand {
|
||||
|
||||
private final CarbonChat carbonChat;
|
||||
|
||||
public ToggleCommand(CarbonChat carbonChat, CommandSettings commandSettings) {
|
||||
public ToggleCommand(CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
|
||||
this.carbonChat = carbonChat;
|
||||
|
||||
if (!commandSettings.isEnabled()) {
|
||||
@@ -72,7 +73,7 @@ public class ToggleCommand {
|
||||
"color", "<color:" + channel.getChannelColor(user).toString() + ">", "channel", channel.getName()));
|
||||
}
|
||||
|
||||
private void executeOther(CommandSender sender, Object[] args) {
|
||||
private void executeOther(@NonNull CommandSender sender, Object[] args) {
|
||||
ChatUser user = (ChatUser) args[0];
|
||||
ChatChannel channel = (ChatChannel) args[1];
|
||||
|
||||
|
||||
Reference in new issue
Block a user