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.CommandUtils;
|
||||
import net.kyori.adventure.text.Component;
|
||||
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 MeCommand {
|
||||
|
||||
private final CarbonChat carbonChat;
|
||||
|
||||
public MeCommand(CarbonChat carbonChat, CommandSettings commandSettings) {
|
||||
public MeCommand(CarbonChat carbonChat, @NonNull CommandSettings commandSettings) {
|
||||
this.carbonChat = carbonChat;
|
||||
|
||||
if (!commandSettings.isEnabled()) {
|
||||
@@ -39,7 +40,7 @@ public class MeCommand {
|
||||
.register();
|
||||
}
|
||||
|
||||
private void execute(Player player, Object[] args) {
|
||||
private void execute(@NonNull Player player, Object[] args) {
|
||||
String message = ((String) args[0]).replace("</pre>", "");
|
||||
String format = PlaceholderAPI.setPlaceholders(player, carbonChat.getLanguage().getString("me"));
|
||||
|
||||
|
||||
Reference in new issue
Block a user