#2479: Allow injection of BungeeCord commands to 1.13 with inject_commands option
This commit is contained in:
@@ -11,6 +11,7 @@ import java.net.URL;
|
||||
import java.net.URLClassLoader;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
@@ -428,4 +429,14 @@ public class PluginManager
|
||||
it.remove();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an unmodifiable collection of all registered commands.
|
||||
*
|
||||
* @return commands
|
||||
*/
|
||||
public Collection<String> getCommands()
|
||||
{
|
||||
return Collections.unmodifiableCollection( commandMap.keySet() );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user