mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Update commandapi to 5.2 (1.16.4 support)
This commit is contained in:
1 parent
d9ef213c2d
commit
22e555900f
16 files changed
+86
-74
No files matched your search
@@ -15,7 +15,8 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MuteCommand {
|
||||
|
||||
@@ -31,8 +32,8 @@ public class MuteCommand {
|
||||
|
||||
CommandUtils.handleDuplicateCommands(commandSettings);
|
||||
|
||||
final LinkedHashMap<String, Argument> arguments = new LinkedHashMap<>();
|
||||
arguments.put("player", CarbonUtils.chatUserArgument());
|
||||
final List<Argument> arguments = new ArrayList<>();
|
||||
arguments.add(CarbonUtils.chatUserArgument("player"));
|
||||
|
||||
new CommandAPICommand(commandSettings.name())
|
||||
.withArguments(arguments)
|
||||
|
||||
Reference in new issue
Block a user