Add missing command completions for BungeeCord
This commit is contained in:
parent
7128b45ade
commit
0ed2b567c8
5 changed files with 23 additions and 8 deletions
|
|
@ -3,8 +3,10 @@ package net.frankheijden.serverutils.bukkit.managers;
|
|||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
|
@ -338,6 +340,13 @@ public class BukkitPluginManager extends AbstractPluginManager<Plugin> {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<String> getCommands() {
|
||||
Map<String, Command> knownCommands = getKnownCommands();
|
||||
if (knownCommands == null) return Collections.emptySet();
|
||||
return knownCommands.keySet();
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getPluginsFolder() {
|
||||
return plugin.getDataFolder().getParentFile();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue