lusta vagyok tovabb csinalni + nem is tudo meg hogy lesz
This commit is contained in:
@@ -12,13 +12,23 @@ import java.util.List;
|
||||
public class WolfFfaCommand implements CommandExecutor, TabCompleter {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) {
|
||||
public boolean onCommand(@NotNull CommandSender cmds, @NotNull Command command, @NotNull String s, @NotNull String[] args) {
|
||||
if (cmds.hasPermission("wolfffa.admin.tptoffa")) {
|
||||
if (args.length > 0) {
|
||||
switch (args[0]) {
|
||||
case "sword":
|
||||
|
||||
break;
|
||||
default:
|
||||
cmds.sendMessage("§cNincs ilyen FFA típus.");
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable List<String> onTabComplete(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) {
|
||||
public @Nullable List<String> onTabComplete(@NotNull CommandSender cmds, @NotNull Command command, @NotNull String s, @NotNull String[] args) {
|
||||
return List.of();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user