@Override
	public boolean execute(CommandSender sender, String[] args) {
		if(!(sender instanceof Player)) {
			return true;
		}
		
		String username = sender.getName();
		String name = args[0];
		
		Group group = groupManager.getGroupByName(name);
		if(group == null) {
			sender.sendMessage("Group doesn't exist");
			return true;
		}
		
		if(group.getPersonal()) {
			sender.sendMessage("Can't delete a Personal Group");
			return true;
		}

		Membership senderMembership = group.getMembership(username);		
		if(senderMembership == null || !senderMembership.isAdmin()) {
			sender.sendMessage("You don't have permission to perform this action");
			return true;
		}
		
		groupManager.deleteGroup(group);	
		return true;
	}