Add mapping method to command manager
import java.util.Collection;
import java.util.List;
+import java.util.Optional;
import java.util.function.Predicate;
/**
@@ -171,4 +172,13 @@ CommandMapping registerAlias(
*/
Collection<PluginContainer> getPlugins();
+ /**
+ * Gets the {@link CommandMapping} associated with the requested alias,
+ * if any.
+ *
+ * @param alias The alias to get the mapping for
+ * @return The {@link CommandMapping}, if any
+ */
+ Optional<CommandMapping> getCommandMapping(final String alias);
+
}
