mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-30 04:19:30 +00:00
1.0
This commit is contained in:
@@ -15,17 +15,20 @@ public class TabComplete implements TabCompleter {
|
||||
@Override
|
||||
@ParametersAreNonnullByDefault
|
||||
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
||||
//没有权限还想补全?
|
||||
|
||||
if (!(sender.hasPermission("customfishing.admin") || sender.isOp())) {
|
||||
return null;
|
||||
}
|
||||
if (args.length == 1){
|
||||
return Arrays.asList("reload","items");
|
||||
return Arrays.asList("reload","items","export");
|
||||
}
|
||||
if (args.length == 2){
|
||||
if (args[0].equalsIgnoreCase("items")){
|
||||
return Arrays.asList("loot","bait","rod","util");
|
||||
}
|
||||
if (args[0].equalsIgnoreCase("export")){
|
||||
return List.of("FileName");
|
||||
}
|
||||
}
|
||||
if (args.length == 3){
|
||||
if (args[0].equalsIgnoreCase("items")){
|
||||
|
||||
Reference in New Issue
Block a user