Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String helpHandler(String type){
- Method[] methods = this.getClass().getMethods();
- StringBuilder builder = new StringBuilder();
- builder.append("Here are all of the "+ WordUtils.capitalize(type) + "Commands:");
- for (Method m : methods) {
- if (m.isAnnotationPresent(CommandAnnotation.class)) {
- CommandAnnotation anno = m.getAnnotation(CommandAnnotation.class);
- if (anno.type().equalsIgnoreCase(type)) {
- builder.append("\n " + Globals.commandPrefix + anno.name());
- }
- }
- }
- return builder.toString();
- }
Advertisement
Add Comment
Please, Sign In to add comment