use of com.Ben12345rocks.AdvancedCore.Objects.TabCompleteHandle in project VotingPlugin by Ben12345rocks.
the class CommandLoader method loadTabComplete.
/**
* Load tab complete.
*/
public void loadTabComplete() {
ArrayList<String> sites = new ArrayList<String>();
for (VoteSite site : plugin.getVoteSites()) {
sites.add(site.getKey());
}
TabCompleteHandler.getInstance().addTabCompleteOption(new TabCompleteHandle("(Sitename)", sites) {
@Override
public void reload() {
ArrayList<String> sites = new ArrayList<String>();
for (VoteSite site : plugin.getVoteSites()) {
sites.add(site.getKey());
}
setReplace(sites);
}
@Override
public void updateReplacements() {
}
});
}
Aggregations