@@ -0,0 +1,2211 @@
+package com.untamedears.citadel.command.commands;%0D%0A%0D%0Aimport static com.untamedears.citadel.Utility.sendMessage;%0D%0A%0D%0Aimport org.bukkit.ChatColor;%0D%0Aimport org.bukkit.command.CommandSender;%0D%0A%0D%0Aimport com.untamedears.citadel.Citadel;%0D%0Aimport com.untamedears.citadel.GroupManager;%0D%0Aimport com.untamedears.citadel.command.PlayerCommand;%0D%0Aimport com.untamedears.citadel.entity.Faction;%0D%0A%0D%0Apublic class GroupInfoCommand extends PlayerCommand %7B%0D%0A%0D%0A%09public GroupInfoCommand() %7B%0D%0A%09%09super(%22Group Information%22);%0D%0A%09%09setDescription(%22Displays information about a group%22);%0D%0A%09%09setUsage(%22/ctgroupinfo 8%3Cgroup-name%3E%22);%0D%0A%09%09setArgumentRange(1,1);%0D%0A%09%09setIdentifiers(new String%5B%5D %7B%22ctgroupinfo%22, %22ctgi%22%7D);%0D%0A%09%7D%0D%0A%0D%0A%09public boolean execute(CommandSender sender, String%5B%5D args) %7B%0D%0A%09%09String groupName = args%5B0%5D;%0D%0A%09%09GroupManager groupManager = Citadel.getGroupManager();%0D%0A%09%09Faction group = groupManager.getGroup(groupName);%0D%0A%09%09if(group == null)%7B%0D%0A%09%09%09sendMessage(sender, ChatColor.RED, %22Group doesn't exist%22);%0D%0A%09%09%09return true;%0D%0A%09%09%7D%0D%0A%09%09String senderName = sender.getName();%0D%0A%09%09if(!group.isFounder(senderName) && !group.isModerator(senderName) && !group.isMember(senderName))%7B%0D%0A%09%09%09sendMessage(sender, ChatColor.RED, %22Invalid permission to access this group%22);%0D%0A%09%09%09return true;%0D%0A%09%09%7D%0D%0A%09%09sender.sendMessage(new StringBuilder().append(%22cGroup Name:e %22).append(groupName).toString());%0D%0A%09%09sender.sendMessage(new StringBuilder().append(%22cOwner:e %22).append(group.getFounder()).toString());%0D%0A%09%09sender.sendMessage(new StringBuilder().append(%22cModerators:e %22).append(groupManager.getModeratorsOfGroup(groupName).size()).toString());%0D%0A%09%09sender.sendMessage(new StringBuilder().append(%22cMembers:e %22).append(groupManager.getMembersOfGroup(groupName).size()).toString());%0D%0A%09%09if(group.isFounder(senderName) %7C%7C group.isModerator(senderName))%7B%0D%0A%09%09%09String password = group.getPassword();%0D%0A%09%09%09sender.sendMessage(new StringBuilder().append(%22cPassword:e %22).append(password).toString());%0D%0A%09%09%09String joinable = %22%22;%0D%0A%09%09%09if(password != null && !password.equalsIgnoreCase(%22null%22))%7B%0D%0A%09%09%09%09joinable = %22Yes%22;%0D%0A%09%09%09%7D else %7B%0D%0A%09%09%09%09joinable = %22No%22;%0D%0A%09%09%09%7D%0D%0A%09%09%09sender.sendMessage(new StringBuilder().append(%22cJoinable:e %22).append(joinable).toString());%0D%0A%09%09%7D%0D%0A%09%09return true;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

New command: Group Info