mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-22 21:43:41 +00:00
Move kits to kits.yml (#1774)
* Move kits to kits.yml We will now use a separate kits.yml file. Any kits that were defined in the config.yml will be migrated over to the kits.yml file automatically on startup.
This commit is contained in:
parent
1f0f77ff72
commit
cd43355d4c
14 changed files with 286 additions and 135 deletions
|
@ -2,7 +2,6 @@ package com.earth2me.essentials.commands;
|
|||
|
||||
import com.earth2me.essentials.Kit;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.Settings;
|
||||
import org.bukkit.Server;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -37,7 +36,7 @@ public class Commandshowkit extends EssentialsCommand {
|
|||
@Override
|
||||
protected List<String> getTabCompleteOptions(final Server server, final User user, final String commandLabel, final String[] args) {
|
||||
if (args.length == 1) {
|
||||
return new ArrayList<>(ess.getSettings().getKits().getKeys(false)); // TODO: Move this to its own method
|
||||
return new ArrayList<>(ess.getKits().getKits().getKeys(false)); // TODO: Move this to its own method
|
||||
} else {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue