Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Command("social")
- public final class SocialCommand {
- @RequireCooldown(500)
- @CommandHandler("{site}")
- public void printTwitterLink(@BeanParameter("links") JsonElement commonLinks,
- @CommandArgument("site") String site,
- @CommandSender CommandSender requestee){
- JsonObject configurationObject = commonLinks.get(site);
- if(configurationObject==null) {
- requestee.sendMessage("media.unknown");
- }
- requestee.sendMessage(configurationObject.getAsString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement